OwlCyberSecurity - MANAGER
Edit File: custom-admin-help-pointers.php
<?php function wpgrade_callback_help_pointers_setup() { // Define our pointers // ------------------- $pointers = array ( array ( // unique id for this pointer 'id' => 'add-archive-menu-item-warning', // this is the page hook we want our pointer to show on 'screen' => 'nav-menus', // the css selector for the pointer to be tied to, best to use ID's 'target' => '#submit-post-type-archives', 'title' => 'Warning', 'content' => 'This menu item does NOT work if you changed the slug for the custom post type. If you haven\'t change it, dissmis this!' , 'position' => array ( 'edge' => 'top', # values: top, bottom, left, right 'align' => 'middle' # values: top, bottom, left, right, middle ) ) // more as needed ); // Info about custom post types drag and drop // ------------------------------------------ // require plugin.php to use is_plugin_active() include_once ABSPATH.'wp-admin/includes/plugin.php'; if (is_plugin_active('simple-page-ordering/simple-page-ordering.php')) { $pointers[] = array ( // unique id for this pointer 'id' => 'info-about-draganddrop-on-postypes', // this is the page hook we want our pointer to show on 'screen' => 'edit-page', // the css selector for the pointer to be tied to, best to use ID's 'target' => '#the-list.ui-sortable .type-page:nth(1)', 'title' => 'Did you know ?', 'content' => 'You can order pages with drag and drop.' , 'position' => array ( 'edge' => 'top', # values: top, bottom, left, right 'align' => 'middle' # values: top, bottom, left, right, middle ) ); $pointers[] = array ( // unique id for this pointer 'id' => 'info-about-draganddrop-on-postypes', // this is the page hook we want our pointer to show on 'screen' => 'edit-homepage_slide', // the css selector for the pointer to be tied to, best to use ID's 'target' => '#the-list.ui-sortable .type-homepage_slide:nth(1)', 'title' => 'Did you know ?', 'content' => 'You can order slides with drag and drop.' , 'position' => array ( 'edge' => 'top', # top, bottom, left, right 'align' => 'middle' # top, bottom, left, right, middle ) ); $pointers[] = array ( // unique id for this pointer 'id' => 'info-about-draganddrop-on-postypes', // this is the page hook we want our pointer to show on 'screen' => 'edit-testimonial', // the css selector for the pointer to be tied to, best to use ID's 'target' => '#the-list.ui-sortable .type-testimonial:nth(1)', 'title' => 'Did you know ?', 'content' => 'You can order testimonials with drag and drop.' , 'position' => array ( 'edge' => 'top', # top, bottom, left, right 'align' => 'middle' # top, bottom, left, right, middle ) ); } // Initialize // ---------- $myPointers = new WP_Help_Pointer(); $myPointers->setup($pointers); } add_action('admin_enqueue_scripts', 'wpgrade_callback_help_pointers_setup');