What is the WP_Internal_Pointers core class?

The documentation does not explain it very well and I would like to understand what it is and why it exists.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

It implements the pointers feature, a UX change that was introduced in v3.3 to help point at new features when you first encounter them

What is the WP_Internal_Pointers core class?

You can use this yourself by enquing the wp-pointer script then using code similar to this:

jQuery(document).ready( function($) {
    $('#menu-appearance').pointer({
        content: '<h3>Edit The Appearance</h3><p>Edit the appearance of your WordPress theme.</p>',
        position: {
               edge: 'left',
               align: 'center'
           },
        close: function() {
            // Once the close button is hit
        }
    }).pointer('open');
});

WP_Internal_Pointers assists the WP Admin PHP in creating the admin pointers used by WordPress itself, however, it appears those pointers are no longer used. The functions that implement each pointer are empty, and the class is preserved for backwards compatibility.

While pointers still exist as a feature, they’ve fallen out of fashion in modern WordPress core development.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x