Cart Notifications - Filter Hook References

Modified on Thu, 28 Sep, 2023 at 4:38 AM

This is simply a list of cart notification-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes.


woopcd_partialcod/process-{group_id}-message

  • Parameters:
  • $message array()


Example Codes:

function custom_process_group_id_message( $message ) {

    //add your custom code here
    return $message;
}

add_filter( 'woopcd_partialcod/process-{group_id}-message', 'custom_process_group_id_message', 10, 1 );

woopcd_partialcod/cart-notification-message

  • Parameters:
  • $notify_obj array()
  • $key string
  • $group_id string


Example Codes:

function custom_cart_notification_message( $notify_obj, $key, $group_id ) {

    //add your custom code here
    return $notify_obj;
}

add_filter( 'woopcd_partialcod/cart-notification-message', 'custom_cart_notification_message', 10, 3 );


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article