WordPress at Your Fingertips
function is not described

WC_Marketplace_Suggestions::init() public WC 1.0

Initialise.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Marketplace_Suggestions::init();

Code of WC_Marketplace_Suggestions::init() WC 5.9.0

public static function init() {
	if ( ! self::allow_suggestions() ) {
		return;
	}

	// Add suggestions to the product tabs.
	add_action( 'woocommerce_product_data_tabs', array( __CLASS__, 'product_data_tabs' ) );
	add_action( 'woocommerce_product_data_panels', array( __CLASS__, 'product_data_panels' ) );

	// Register ajax api handlers.
	add_action( 'wp_ajax_woocommerce_add_dismissed_marketplace_suggestion', array( __CLASS__, 'post_add_dismissed_suggestion_handler' ) );

	// Register hooks for rendering suggestions container markup.
	add_action( 'wc_marketplace_suggestions_products_empty_state', array( __CLASS__, 'render_products_list_empty_state' ) );
	add_action( 'wc_marketplace_suggestions_orders_empty_state', array( __CLASS__, 'render_orders_list_empty_state' ) );
}