woocommerce_rest_insert_product_attribute, $attribute, $request, false

woocommerce_rest_insert_product_attribute, $attribute, $request, false

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_rest_insert_product_attribute, $attribute, $request, false') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php line 369
    		 * @param stdObject       $attribute Inserted attribute object.
    		 * @param WP_REST_Request $request   Request object.
    		 * @param boolean         $creating  True when creating attribute, false when updating.
    		 */
    		do_action( 'woocommerce_rest_insert_product_attribute', $attribute, $request, false );
    
    		$request->set_param( 'context', 'edit' );
    		$response = $this->prepare_item_for_response( $attribute, $request );
    
    		return rest_ensure_response( $response );
    	}