WordPress at Your Fingertips
function is not described

WC_Marketplace_Suggestions::get_dismissed_suggestions() public WC 1.0

Return an array of suggestions the user has dismissed.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Marketplace_Suggestions::get_dismissed_suggestions();

Code of WC_Marketplace_Suggestions::get_dismissed_suggestions() WC 5.9.0

public static function get_dismissed_suggestions() {
	$dismissed_suggestions = array();

	$dismissed_suggestions_data = get_user_meta( get_current_user_id(), 'wc_marketplace_suggestions_dismissed_suggestions', true );
	if ( $dismissed_suggestions_data ) {
		$dismissed_suggestions = $dismissed_suggestions_data;
		if ( ! is_array( $dismissed_suggestions ) ) {
			$dismissed_suggestions = array();
		}
	}

	return $dismissed_suggestions;
}