WC_Admin_List_Table_Products::render_filters()protectedWC 1.0

Render any custom filters and search inputs for the list table.

Method of the class: WC_Admin_List_Table_Products{}

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->render_filters();

WC_Admin_List_Table_Products::render_filters() code WC 9.4.2

protected function render_filters() {
	$filters = apply_filters(
		'woocommerce_products_admin_list_table_filters',
		array(
			'product_category' => array( $this, 'render_products_category_filter' ),
			'product_type'     => array( $this, 'render_products_type_filter' ),
			'stock_status'     => array( $this, 'render_products_stock_status_filter' ),
		)
	);

	ob_start();
	foreach ( $filters as $filter_callback ) {
		call_user_func( $filter_callback );
	}
	$output = ob_get_clean();

	echo apply_filters( 'woocommerce_product_filters', $output ); // WPCS: XSS ok.
}