WordPress at Your Fingertips
function is not described

WC_Marketplace_Suggestions::show_suggestions_for_screen() public WC 1.0

Should suggestions be displayed?

{} It's a method of the class: WC_Marketplace_Suggestions{}

No Hooks.

Return

true|false.

Usage

$result = WC_Marketplace_Suggestions::show_suggestions_for_screen( $screen_id );
$screen_id(string) (required)
The current admin screen.

Code of WC_Marketplace_Suggestions::show_suggestions_for_screen() WC 5.9.0

public static function show_suggestions_for_screen( $screen_id ) {
	// We only show suggestions on certain admin screens.
	if ( ! in_array( $screen_id, array( 'edit-product', 'edit-shop_order', 'product' ), true ) ) {
		return false;
	}

	return self::allow_suggestions();
}