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.7.1

apply_filters('woocommerce_order_is_created_via') is found 1 times:

  • /includes/class-wc-order.php line 2429
    2425
    2426
    2427
    2428
    2429
    2430
    2431
    2432
    2433
    2434
    2435
    * @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.