woocommerce_rest_webhook_query

woocommerce_rest_webhook_query

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_webhook_query') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php line 263
    		 *
    		 * @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' );