How do you create a basic Wordpress admin pointer? -


i have been looking around quite awhile , have found tutorials 3-4 years ago explain how pointer tour. want add pointer pops when activates plugin can notify them of new menu option go view plugin settings. appreciated!

what looking wordpress activation / deactivation hooks. example:

register_activation_hook( __file__, 'pluginprefix_function_to_run' ); 

and on pluginprefix_function_to_run, display nice message let users know you've added menu using admin_notices:

function my_admin_notice() {     ?>     <div class="updated">         <p><?php _e( 'your message goes here!', 'my-text-domain' ); ?></p>     </div>     <?php }  function pluginprefix_function_to_run() {     add_action( 'admin_notices', 'my_admin_notice' ); } 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -