This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Disable Standart Widgets | |
| */ | |
| function unregister_default_wp_widgets() { | |
| unregister_widget('WP_Widget_Calendar'); | |
| unregister_widget('WP_Widget_Search'); | |
| unregister_widget('WP_Widget_Recent_Comments'); | |
| } | |
| add_action('widgets_init', 'unregister_default_wp_widgets', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add/Remove Links in Admin Favorites Menu | |
| */ | |
| function custom_favorite_menu($actions) { | |
| # Removing # | |
| unset($actions['edit-comments.php']); | |
| unset($actions['media-new.php']); | |
| # Adding # | |
| $actions['admin.php?your-plugin'] = array('Your Plugin', 'manage_options'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Remove Posts Columns | |
| */ | |
| function remove_post_columns($defaults) { | |
| unset($defaults['comments']); | |
| return $defaults; | |
| } | |
| add_filter('manage_posts_columns', 'remove_post_columns'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Remove Pages Columns | |
| */ | |
| function remove_pages_columns($defaults) { | |
| unset($defaults['comments']); | |
| return $defaults; | |
| } | |
| add_filter('manage_pages_columns', 'remove_pages_columns'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Custom Login Logo | |
| */ | |
| function custom_login_logo() { | |
| echo '<style type="text/css"> | |
| h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; } | |
| </style>'; | |
| } | |
| add_action('login_head', 'custom_login_logo'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Change/Remove footer text in admin | |
| */ | |
| function remove_footer_admin () { | |
| echo 'My footer text. Thank you <a href="http://wordpress.org">Wordpress</a> for giving me this filter.'; | |
| //echo ""; | |
| } | |
| add_filter('admin_footer_text', 'remove_footer_admin'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Security: Remove wlw manifest link from head | |
| */ | |
| remove_action('wp_head', 'wlwmanifest_link'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Security: Remove WP rsd link from head | |
| */ | |
| remove_action('wp_head', 'rsd_link'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Security: Remove WP meta generator from head | |
| */ | |
| remove_action('wp_head', 'wp_generator'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Disable WP core update | |
| */ | |
| add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
| ?> |