WooCommerce Partial COD - Payment Gateway Restriction & Fees

Others - Filter Hook References

This is simply a list of other 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-admin/get-method-{method_id}-props

  • Parameters:
  • $method_props array()

Example Codes:

  1. function custom_get_method_props( $method_props ) {
  2.    //add your custom code here
  3.    return $method_props;
  4. }
  5. add_filter( 'woopcd_partialcod-admin/get-method-{method_id}-props', 'custom_get_method_props', 10, 1 );

woopcd_partialcod-admin/get-settings-section-fields

  • Parameters:
  • $fields array()

Example Codes:

  1. function custom_get_settings_section_fields( $fields ) {
  2.    //add your custom code here
  3.    return $fields;
  4. }
  5. add_filter( 'woopcd_partialcod-admin/get-settings-section-fields', 'custom_get_settings_section_fields', 10, 1 );

woopcd_partialcod/partial-payment/get-method-ids

  • Parameters:
  • $method_ids array()

Example Codes:

  1. function custom_get_method_ids( $method_ids ) {
  2.    //add your custom code here
  3.    return $method_ids;
  4. }
  5. add_filter( 'woopcd_partialcod/partial-payment/get-method-ids', 'custom_get_method_ids', 10, 1 );

woopcd_partialcod/is_email

  • Parameters:
  • $is_email bool

Example Codes:

  1. function custom_get_is_email( $is_email ) {
  2.    //add your custom code here
  3.    return $is_email; // true or false
  4. }
  5. add_filter( 'woopcd_partialcod/is_email', 'custom_get_is_email', 10, 1 );

woopcd_partialcod/is_db_order_total

  • Parameters:
  • $is_db_order_total bool

Example Codes:

  1. function custom_get_is_db_order_total( $is_db_order_total ) {
  2.    //add your custom code here
  3.    return $is_db_order_total; // true or false
  4. }
  5. add_filter( 'woopcd_partialcod/is_db_order_total', 'custom_get_is_db_order_total', 10, 1 );

woopcd_partialcod/can_adjust_cart_total

  • Parameters:
  • $can_adjust_cart_total bool

Example Codes:

  1. function custom_can_adjust_cart_total( $can_adjust_cart_total ) {
  2.    //add your custom code here
  3.    return $can_adjust_cart_total; // true or false
  4. }
  5. add_filter( 'woopcd_partialcod/can_adjust_cart_total', 'custom_can_adjust_cart_total', 10, 1 );
    • Related Articles

    • Partial Payment Amounts - Filter Hook References

      This is simply a list of partial payment amount-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. ...
    • Gateway Fees - Filter Hook References

      This is simply a list of gateway fee-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. ...
    • Cart Discounts - Filter Hook References

      This is simply a list of cart discount-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. ...
    • Settings & Restrictions - Filter Hook References

      This is simply a list of settings & restrictions-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. ...
    • Partial Payments - Filter Hook References

      This is simply a list of partial payment-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. ...