Add a code example in the prompt box to the WordPress editing background for sharing ,. Add a code instance to the WordPress editing background to share the prompt box. WordPress3.5 adds a new prompt box function. you can create a prompt box and point it to any element, for example, add a prompt box to the WordPress editing background for code instance sharing,
WordPress 3.5 adds a prompt box function. you can create a prompt box and point it to any element, for example, the following example:
This article will teach you how to create a prompt box like this.
First, you must add a prompt box script to use the JS method of the prompt box.
// Mount the prompt box script function failed () {wp_enqueue_style ('WP-pointer '); wp_enqueue_script ('WP-pointer');} add_action ('admin _ enqueue_scripts ', 'bing _ admin_pointer_enqueue_scripts ');
Then use the pointer () method to create a simple prompt box:
/*** WordPress background prompt box * http://www.endskin.com/admin-help-box/#/function Bing_add_pointer_scripts () {$ content = 'set topic '; $ content. ='Perform simple configuration for the new topic! ';?>