woocommerce_rest_webhook_query

woocommerce_rest_webhook_query

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rest_webhook_query') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php line 263
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    *
     * @param array           $args    Array of arguments for $wpdb->get_results().
     * @param WP_REST_Request $request The current request.
     */
    $prepared_args = apply_filters( 'woocommerce_rest_webhook_query', $args, $request );
    unset( $prepared_args['page'] );
    $prepared_args['paginate'] = true;
     
    // Get the webhooks.
    $webhooks    = array();
    $data_store  = WC_Data_Store::load( 'webhook' );