1

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

1 Answer 1

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

enter image description here

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.

1
  • 1
    I could not imagine a better explanation. Thanks. Feb 22, 2021 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.