woocommerce_helper_connect_start

woocommerce_helper_connect_start

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

do_action('woocommerce_helper_connect_start') is found 2 times:

  • /includes/admin/helper/class-wc-helper.php line 912
     
    		/**
    		 * Fires when the Helper connection process is initiated.
    		 */
    		do_action( 'woocommerce_helper_connect_start' );
    
    		// Ignore all previously dismissed connected notices.
    		delete_metadata( 'user', 0, \Automattic\WooCommerce\Admin\PluginsHelper::DISMISS_CONNECT_NOTICE, '', true );
    
    		$connect_url = add_query_arg(
    			array(
    
  • /src/Admin/API/Plugins.php line 490
    		if ( empty( $secret ) ) {
    			return new \WP_Error( 'woocommerce_rest_helper_connect', __( 'There was an error connecting to WooCommerce.com. Please try again.', 'woocommerce' ), 500 );
    		}
    
    		do_action( 'woocommerce_helper_connect_start' );
    
    		$connect_url = add_query_arg(
    			array(
    				'home_url'     => rawurlencode( home_url() ),
    				'redirect_uri' => rawurlencode( $redirect_uri ),
    				'secret'       => rawurlencode( $secret ),
    

See this hook used in plugins: