Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Admin_Onboarding::popup_editor_main_tour( array $pointers )
Appends our main tour for the popup editor to pointers.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $pointers
-
(Required) The pointers added to the screen.
Return Return
(array) $pointers The updated pointers array.
Source Source
File: classes/Admin/Onboarding.php
public static function popup_editor_main_tour( $pointers ) { /** * For the position, the 'edge' is used as the second parameter * in jQuery's "at" with the opposite in jQuery's "my". * The optional align is used as the first parameter in both "at" and "my". * * @see https://github.com/WordPress/WordPress/blob/master/wp-includes/js/wp-pointer.js#L295 * @see https://jqueryui.com/position/ */ $pointers['popup-editor-1'] = array( 'target' => '#title', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Name' ,'popup-maker'), __( 'Name your popup so you can find it later. Site visitors will not see this.','popup-maker') ), 'position' => array( 'edge' => 'top', 'align' => 'center' ), ) ); $pointers['popup-editor-2'] = array( 'target' => '#wp-content-editor-container', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Content' ,'popup-maker'), __( 'Add content for your popup here.','popup-maker') ), 'position' => array( 'edge' => 'bottom', 'align' => 'center' ), ) ); $pointers['popup-editor-3'] = array( 'target' => 'a[href="#pum-popup-settings_triggers"]', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Triggers' ,'popup-maker'), __( 'Use triggers to choose what causes the popup to open.','popup-maker') ), 'position' => array( 'edge' => 'left', 'align' => 'center' ), ) ); $pointers['popup-editor-4'] = array( 'target' => 'a[href="#pum-popup-settings_targeting"]', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Targeting' ,'popup-maker'), __( 'Use targeting to choose where on your site the popup should load and who to show the popup to.','popup-maker') ), 'position' => array( 'edge' => 'left', 'align' => 'center' ), ) ); $pointers['popup-editor-5'] = array( 'target' => 'a[href="#pum-popup-settings_display"]', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Display' ,'popup-maker'), __( 'Use display settings to choose where on the screen the popup appears and what it looks like.','popup-maker') ), 'position' => array( 'edge' => 'left', 'align' => 'center' ), ) ); $pointers['popup-editor-6'] = array( 'target' => 'select#theme_id', 'options' => array( 'content' => sprintf( '<h3> %s </h3> <p> %s </p>', __( 'Popup Theme' ,'popup-maker'), __( 'Choose the popup theme which controls the visual appearance of your popup including; colors, spacing, and fonts.','popup-maker') ), 'position' => array( 'edge' => 'bottom', 'align' => 'left' ), ), 'pre' => array( 'clicks' => array( 'a[href="#pum-popup-settings_display"]', 'a[href="#pum-popup-settings-display-subtabs_main"]', ), ), ); return $pointers; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.11.0 | Introduced. |