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_is_admin_page()
Determines whether the current page is an popup maker admin page.
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
(bool)
Source Source
File: includes/functions/admin/conditionals.php
function pum_is_admin_page() { if ( ! is_admin() || ! did_action( 'wp_loaded' ) ) { return false; } $typenow = pum_typenow(); $tests = array( 'popup' == $typenow, 'popup_theme' == $typenow, ! empty( $GLOBALS['hook_suffix'] ) && in_array( $GLOBALS['hook_suffix'], PUM_Admin_Pages::$pages ), ); return in_array( true, $tests ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |