WordPress filter hook
edd_metabox_save_edd_sale_price
Fired by 2 WordPress plugins, running on 500+ sites between them.
How to use edd_metabox_save_edd_sale_price
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'edd_metabox_save_edd_sale_price', function( $_POST ) {
// Change $_POST here.
return $_POST;
}, 10, 1 );Argument names come from Sale Price for EDD's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire edd_metabox_save_edd_sale_price
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Sale Price for EDD300+ installs
apply_filters( 'edd_metabox_save_edd_sale_price', $_POST['edd_sale_price'] )includes/admin/class-eddsp-admin-product.php:125 -
Counten- Sale Counter Advanced200+ installs
apply_filters( 'edd_metabox_save_edd_sale_price', $_POST['edd_sale_price'] )admin/class-edd-sale-counter-advanced-admin.php:231
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.