开发者 |
krishaweb
dilipbheda pratikgandhi |
---|---|
更新时间 | 2022年11月18日 13:18 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.1 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
Yes, you can add it using this filter:
add_filter( 'wat_pointers', function( $pointers ) { // Register pointer for contact form 7. $pointers['toplevel_page_wpcf7'] = array( 'screen_info' => array( 'name' => __( 'Contact form List', 'admin-tour' ), 'url' => add_query_arg( array( 'page' => 'wpcf7' ), admin_url( 'admin.php' ) ), ), array( 'id' => 'add_new', 'tagget_element' => '.page-title-action', // jQuery selector ID, class or any other method. 'title' => __( 'Add new', 'admin-tour' ), 'content' => __( 'Add new form.', 'admin-tour' ), 'position' => array( 'edge' => 'left', 'align' => 'left', ), 'url' => add_query_arg( array( 'page' => 'wpcf7-new' ), admin_url( 'admin.php' ) ), ), array( 'id' => 'edit', 'tagget_element' => '#the-list tr:eq(0) .title', // jQuery selector ID, class or any other method. 'title' => __( 'Edit form', 'admin-tour' ), 'content' => __( 'Edit contact form.', 'admin-tour' ), 'position' => array( 'edge' => 'bottom', 'align' => 'left', ), ), ); return $pointers; } );
screen_info array is used for the dahboard widget, what ever text you wish to keep there, you can keep it here.
Yes, you can do it easily using this filter:
add_filter( 'wat_pointers', function( $pointers ) { // default the below pointer will be added to the last $pointers['general'][] = array( 'id' => 'menu_comments', 'tagget_element' => '#menu-comments', // jQuery selector ID, class or any other method. 'title' => __( 'Comments', 'admin-tour' ), 'content' => __( 'You can hover the category and you will see the edit option, click on it to edit that category.', 'admin-tour' ), 'next_pointer' => '', 'position' => array( 'edge' => 'left', 'align' => 'left', ), ); // Change pointer ordering as per your wish $reorder = array( 'menu_posts', 'menu_media', 'menu_pages', 'menu_comments', 'menu_users', 'wat_widget' ); $pointers['general'] = wat_reorder_pointers( $pointers['general'] ); return $pointers; } );
You can do it using the below filter. You need to add it in the function file.
add_filter( 'wat_dismiss_expiration_time', function( $expiration ) { return 60 * DAY_IN_SECONDS; } );
Yes, you can do it easily using this filter:
add_filter( 'wat_allowed_roles', function( $roles ) { $roles[] = 'shop_manager'; return $roles; } );
You can do it using this constant in wp-config.php:
define( 'WAT_SHOW_ADMIN_BAR_OPTION', false );
Great! I’d love to hear from you at support@krishaweb.com