Removing Default Author Profile Fields In WordPress
With the help of following snippet, you will be able to remove default author profile fields in WordPress.
1 2 3 4 5 6 7 |
add_filter('user_contactmethods','hide_profile_fields',10,1); function hide_profile_fields( $contactmethods ) { unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; } |
Snippet Source/Credit: Snipplr
How To Remove Standard Gallery Style In WordPress
Using the following snippet you will be able to remove standard gallery style in WordPress.
1 |
add_filter( 'use_default_gallery_style', '__return_false' ); |
How To Clean Dashboard Meta Boxes In WordPress
Using the following snippet you will be able to clean dashboard meta boxes in WordPress.
1 2 3 4 5 6 7 8 9 10 11 12 |
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); } add_action( 'admin_init', 'remove_dashboard_meta' ); |
Snippet Source/Credit: WordPress Codex
How To Remove Widgets From WordPress Dashboard
The following lines of code you will be able to remove widgets from WordPress dashboard.
1 2 3 4 5 6 |
function remove_dashboard_widgets() { global$wp_meta_boxes; unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); } add_action('wp_dashboard_setup', 'remove_dashboard_widgets'); |
Snippet Source/Credit: WP Guru
How To Remove Default Author Profile Fields
The following snippet will let you remove default author profile fields.
1 2 3 4 5 6 7 |
add_filter('user_contactmethods','hide_profile_fields',10,1); function hide_profile_fields( $contactmethods ) { unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; } |
Snippet Source/Credit: Snipplr