WC_Admin_List_Table_Orders::restrict_manage_posts()publicWC 1.0

See if we should render search filters or not.

Method of the class: WC_Admin_List_Table_Orders{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_List_Table_Orders = new WC_Admin_List_Table_Orders();
$WC_Admin_List_Table_Orders->restrict_manage_posts();

WC_Admin_List_Table_Orders::restrict_manage_posts() code WC 8.7.0

public function restrict_manage_posts() {
	global $typenow;

	if ( in_array( $typenow, wc_get_order_types( 'order-meta-boxes' ), true ) ) {
		$this->render_filters();
	}
}