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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -