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
| //HIDING UNWANTED WORDPRESS DASHBOARD WIDGETS | |
| add_action('wp_dashboard_setup', 'wpc_dashboard_widgets'); | |
| function wpc_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| // Today widget | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
| // Last comments | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); |
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
| // Add a widget in WordPress Dashboard | |
| function wpc_dashboard_widget_function(){ | |
| // Entering the text between the quotes | |
| echo "<ul> | |
| <li>Release Date: March 2012</li> | |
| <li>Author: Aurelien Denis.</li> | |
| <li>Hosting provider: my own server</li> | |
| </ul>"; | |
| } |
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
| // remove admin bar at front end | |
| add_filter('show_admin_bar', '__return_false'); |
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
| // Use your own external URL logo link. | |
| function wpc_url_login(){ | |
| return "http://erikyang.info/"; // your URL here | |
| } | |
| add_filter('login_headerurl','wpc_url_login'); |
NewerOlder