wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * Check if this is a post overview page and that plugin is enabled for this overview page
 */
Check if this is a post overview page and that plugin is enabled for this overview page
Check if this is a post overview page and that plugin is enabled for this overview page
function cms_tpv_setup_postsoverview() {
	$options = cms_tpv_get_options();
	$current_screen = get_current_screen();
	if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
		add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
		cmstpv_postoverview_head();
	}
}
function cms_tpv_setup_postsoverview ( ) { $ options = cms_tpv_get_options ( ) ; $ current_screen = get_current_screen ( ) ; if ( " edit " === $ current_screen -> base && in_array ( $ current_screen -> post_type , $ options [ " postsoverview " ] ) ) { add_filter ( " views_ " . $ current_screen -> id , " cmstpv_filter_views_edit_postsoverview " ) ; cmstpv_postoverview_head ( ) ; } }
Check if this is a post overview page and that plugin is enabled for this overview page
Check if this is a post overview page and that plugin is enabled for this overview page
// Ok, this is a post overview page that we are enabled for