Share _php instances with code instances that add a hint box to WordPress's edit background

Source: Internet
Author: User
Tags cdata

WordPress 3.5 added a new balloon feature, you can create a cue box, and then point to any element, such as the following example:

This article will teach you how to create a prompt box like this.

First you need to add a script for the prompt box, so you can use the JS method of the Prompt box.

Mount Cue box script
function bing_admin_pointer_enqueue_scripts () {
  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 add prompt box
  *http://www.endskin.com/admin-help-box/
/
function Bing_add_pointer_ Scripts () {
  $content = ' 

Integrated code:

/**
  *wordpress background add prompt box
  *http://www.endskin.com/admin-help-box/
/
function Bing_add_pointer_ Scripts () {
  $content = '  
 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.