Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Lets declare the name of our child theme
- $themename = "micropoetry";
- function remove_admin_bar_links() {
- global $wp_admin_bar;
- $wp_admin_bar->remove_menu('new-content');
- $wp_admin_bar->remove_menu('get-shortlink');
- $wp_admin_bar->remove_menu('my-account-with-avatar');
- }
- add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
- function ya_do_it_admin_bar_remove() {
- global $wp_admin_bar;
- /* **edit-profile is the ID** */
- $wp_admin_bar->remove_menu('edit-profile');
- }
- add_filter('sidebar_login_widget_avatar_size','new_login_avatar_size');
- function new_login_avatar_size(){
- return 70;
- }
- //Remove Alizee contact methods
- function remove_alizee_contactmethods( $contactmethods ) {
- unset($contactmethods['alizee_facebook']);
- unset($contactmethods['alizee_twitter']);
- unset($contactmethods['alizee_googleplus']);
- unset($contactmethods['alizee_linkedin']);
- return $contactmethods;
- }
- add_filter( 'user_contactmethods', 'remove_alizee_contactmethods', 11, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement