WC_Marketplace_Suggestions::show_suggestions_for_screen( string $screen_id )

Should suggestions be displayed?


Description Description


Parameters Parameters

$screen_id

(Required) The current admin screen.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php

	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();
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.