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::get_random_tip()
Retrieves a random tip
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
Return Return
(array) An array containing tip
Source Source
File: classes/Admin/Onboarding.php
public static function get_random_tip() { $tips = array( array( 'msg' => 'Did you know: Popup Maker has a setting to let you try to bypass adblockers? Enabling it randomizes cache filenames and other endpoints to try to get around adblockers.', 'link' => admin_url( 'edit.php?post_type=popup&page=pum-settings&tab=pum-settings_misc' ), ), array( 'msg' => "Want to use the block editor to create your popups? Enable it over on Popup Maker's settings page.", 'link' => admin_url( 'edit.php?post_type=popup&page=pum-settings' ), ), array( 'msg' => 'Using the Popup Maker menu in your admin bar, you can open and close popups, check conditions, reseet cookies, and more!', 'link' => 'https://docs.wppopupmaker.com/article/300-the-popup-maker-admin-toolbar', ), array( 'msg' => "Did you know: You can easily customize your site's navigation to have a link open a popup by using the 'Trigger a Popup' option when editing your menus?", 'link' => 'https://docs.wppopupmaker.com/article/51-open-a-popup-from-a-wordpress-nav-menu', ), ); if ( 7 < pum_count_popups() ) { $tips[] = array( 'msg' => 'Want to organize your popups? Enable categories on the settings page to group similar popups together!', 'link' => admin_url( 'edit.php?post_type=popup&page=pum-settings&tab=pum-settings_misc' ), ); } $random_tip = array_rand( $tips ); return $tips[ $random_tip ]; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.13.0 | Introduced. |