woocommerce_

woocommerce_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_') is found 6 times:

  • /includes/admin/settings/class-wc-settings-accounts.php line 350
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
         * @hook woocommerce_account_settings
         * @since 3.5.0
         * @param array $account_settings Account settings.
         */
        return apply_filters( 'woocommerce_' . $this->id . '_settings', $account_settings );
    }
     
    /**
     * Output the HTML for the settings.
     */
    public function output() {
  • /includes/class-wc-countries.php line 1746
    1742
    1743
    1744
    1745
    1746
    1747
    1748
    1749
    1750
    1751
    1752
             * the woocommerce_default_address_fields. The locales/default locales apply on top based
             * on country selection. If you want to change things like the required status of an
             * address field, filter woocommerce_default_address_fields instead.
             */
            $address_fields = apply_filters( 'woocommerce_' . $type . 'fields', $address_fields, $country );
            // Sort each of the fields based on priority.
            uasort( $address_fields, 'wc_checkout_fields_uasort_comparison' );
     
            return $address_fields;
        }
    }
  • /includes/class-wc-data-store.php line 92
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
        $object_type = $pieces[0];
    }
     
    if ( array_key_exists( $object_type, $this->stores ) ) {
        $store = apply_filters( 'woocommerce_' . $object_type . '_data_store', $this->stores[ $object_type ] );
        if ( is_object( $store ) ) {
            if ( ! $store instanceof WC_Object_Data_Store_Interface ) {
                throw new Exception( __( 'Invalid data store.', 'woocommerce' ) );
            }
            $this->current_class_name = get_class( $store );
            $this->instance           = $store;
  • /src/Internal/Admin/Orders/ListTable.php line 386
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    * @param array $request Request to be passed to `wc_get_orders()`.
     *
     * @since 7.3.0
     */
    $this->request = apply_filters( 'woocommerce_' . $this->order_type . '_list_table_request', $this->request );
     
    $this->set_status_args();
    $this->set_order_args();
    $this->set_date_args();
    $this->set_customer_args();
    $this->set_search_args();
  • /src/Internal/Admin/Orders/ListTable.php line 411
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    * @param array $query_args Arguments to be passed to `wc_get_orders()`.
     *
     * @since 7.3.0
     */
    $order_query_args = apply_filters( 'woocommerce_' . $this->order_type . '_list_table_prepare_items_query_args', $order_query_args );
     
    // We must ensure the 'paginate' argument is set.
    $order_query_args['paginate'] = true;
     
    $orders      = wc_get_orders( $order_query_args );
    $this->items = $orders->orders;
  • /src/Internal/Admin/Orders/ListTable.php line 768
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    * @since 8.6.0
     *
     * @param bool   $disable   Whether to disable the drop-down. Default false.
     */
    if ( apply_filters( 'woocommerce_' . $this->order_type . '_list_table_disable_months_filter', false ) ) {
        return;
    }
     
    $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
    echo '<select name="m" id="filter-by-date">';
    echo '<option ' . selected( $m, 0, false ) . ' value="0">' . esc_html__( 'All dates', 'woocommerce' ) . '</option>';