WC_Marketplace_Suggestions::get_dismissed_suggestions()public staticWC 1.0

Return an array of suggestions the user has dismissed.

Method of the class: WC_Marketplace_Suggestions{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Marketplace_Suggestions::get_dismissed_suggestions();

WC_Marketplace_Suggestions::get_dismissed_suggestions() code WC 8.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;
}