woocommerce_order_is_created_via

woocommerce_order_is_created_via

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_is_created_via') is found 1 times:

  • /includes/class-wc-order.php line 2349
    	 * @param string $modus Way of creating the order to test for.
    	 * @return bool
    	 */
    	public function is_created_via( $modus ) {
    		return apply_filters( 'woocommerce_order_is_created_via', $modus === $this->get_created_via(), $this, $modus );
    	}
    
    	/**
    	 * Attempts to restore the specified order back to its original status (after having been trashed).
    	 *
    	 * @return bool If the operation was successful.