Herself's Webtools

Scripts, HowTos, Templates, Plugins, Widgets, Tips

How to kill WordPress tool tips




I despise pop ups of any kind, and on one of the website the WordPress tool tips refuse to disappear despite being dismissed many times.

To kill tool tips on the blog you will need to edit
wp-admin/includes/template.php

You’ll need to make a note to save a copy of this file or re-edit it after each WordPress upgrade.

Scroll down the file almost to the end and find this section:

/**
* Prevents new users from seeing existing 'new feature' pointers.
*
* @since 3.3.0
*/
public static function dismiss_pointers_for_new_users( $user_id ) {
add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,
wp340_customize_current_theme_link,wp350_media' );
}
}

add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) );

————————————————————————————————————
Change it to look like this:


/**
* Prevents new users from seeing existing 'new feature' pointers.
*
* @since 3.3.0
*/
public static function dismiss_pointers_for_new_users( $user_id ) {
add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,
wp340_customize_current_theme_link,wp350_media' );
}
}

//add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) );

  •      
  •      
  •      

  •      
  •      
  •      
  •