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)


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.