Sha256: ea5441e5f931db9713282367f12b7e5ca0b8ce1e0489c0c911ce37ba904d43fe
Contents?: true
Size: 1.57 KB
Versions: 5
Compression:
Stored size: 1.57 KB
Contents
<?php // Block direct access if( ! defined( 'ABSPATH' ) ) exit; // Only in admin if( ! is_admin() ) return; /** * Remove contactmethods */ function <%= theme_id %>_edit_contactmethods( $methods ) { unset( $methods['aim'] ); unset( $methods['jabber'] ); unset( $methods['yim'] ); return $methods; } add_filter( 'user_contactmethods', '<%= theme_id %>_edit_contactmethods' ); /** * Add MCE */ function <%= theme_id %>_enable_more_buttons( $buttons ) { $buttons[] = 'hr'; return $buttons; } add_filter( 'mce_buttons', '<%= theme_id %>_enable_more_buttons' ); /** * Remove menu items */ function <%= theme_id %>_remove_menu_pages() { remove_menu_page( 'link-manager.php' ); } add_action( 'admin_menu', '<%= theme_id %>_remove_menu_pages' ); /** * Remove dashboard widgets */ function <%= theme_id %>_remove_dashboard_widgets() { global $wp_meta_boxes; unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'] ); unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] ); unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts'] ); unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] ); unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] ); unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'] ); // unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_right_now'] ); // unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] ); } add_action( 'wp_dashboard_setup', '<%= theme_id %>_remove_dashboard_widgets' );
Version data entries
5 entries across 5 versions & 1 rubygems