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_popup_editor()

Determines whether the current admin page is the popup editor.


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_popup_editor() {
	global $pagenow;

	$tests = array(
		is_admin(),
		pum_is_admin_page(),
		'popup' == pum_typenow(),
		in_array( $pagenow, array( 'post-new.php', 'post.php' ) ),
	);

	return ! in_array( false, $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.