woocommerce_api_edit_webhook_data

woocommerce_api_edit_webhook_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_webhook_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-webhooks.php line 253
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    if ( is_wp_error( $id ) ) {
        return $id;
    }
     
    $data = apply_filters( 'woocommerce_api_edit_webhook_data', $data, $id, $this );
     
    $webhook = wc_get_webhook( $id );
     
    // update topic
    if ( ! empty( $data['topic'] ) ) {
  • /includes/legacy/api/v3/class-wc-api-webhooks.php line 253
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    if ( is_wp_error( $id ) ) {
        return $id;
    }
     
    $data = apply_filters( 'woocommerce_api_edit_webhook_data', $data, $id, $this );
     
    $webhook = wc_get_webhook( $id );
     
    // update topic
    if ( ! empty( $data['topic'] ) ) {