ap_load_admin_assets()
Description #
Check if AnsPress admin assets need to be loaded.
Source #
File: admin/functions.php
function ap_load_admin_assets() { $page = get_current_screen(); $load = 'question' === $page->post_type || 'answer' === $page->post_type || strpos( $page->base, 'anspress' ) !== false || 'nav-menus' === $page->base || 'admin_page_ap_select_question' === $page->base || 'admin_page_anspress_update' === $page->base; /** * Filter ap_load_admin_assets to load admin assets in custom page. * * @param boolean $load Pass a boolean value if need to load assets. * @return boolean */ return apply_filters( 'ap_load_admin_assets', $load ); }
Expand full source code Collapse full source code View on GitHub: admin/functions.php:61
Add your comment