Remove WPML notices

在 wp-content/themes/name/functions.php 最下加以下 code

 

/**
* Remove WPML notices
**/
if( !function_exists( ‘m7_remove_wmpl_notices’ ) ) :
function m7_remove_wmpl_notices() {
remove_action(‘admin_notices’, array( WP_Installer(), ‘show_site_key_nags’ ) );
remove_action( ‘admin_notices’, array( WP_Installer(), ‘setup_plugins_page_notices’ ) );
}
endif;
add_action( ‘init’, ‘m7_remove_wmpl_notices’, 11 );

Replies: 0 / Share:

You might also like …

Post Comment

Your email address will not be published. Required fields are marked *