Skip to content

Commit

Permalink
👌 IMPROVE: Updated apply_filters function name
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdevore committed Jun 7, 2022
1 parent 091233e commit 1a4d5ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/metaboxes/wpd-metabox-product-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function wp_dispensary_product_details_metabox_save() {
'clone_count',
);

$detail_keys = apply_filter( 'wp_dispensary_details_metabox_save_detail_keys', $detail_keys );
$detail_keys = apply_filters( 'wp_dispensary_details_metabox_save_detail_keys', $detail_keys );

foreach ( $detail_keys as $key ) {
$details_meta[$key] = filter_input( INPUT_POST, $key );
Expand Down
2 changes: 1 addition & 1 deletion admin/metaboxes/wpd-metabox-product-prices.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function wp_dispensary_product_prices_metabox_save() {
'price_ounce',
);

$price_keys = apply_filter( 'wp_dispensary_prices_metabox_save_price_keys', $price_keys );
$price_keys = apply_filters( 'wp_dispensary_prices_metabox_save_price_keys', $price_keys );

foreach ( $price_keys as $key ) {
$prices_meta[$key] = filter_input( INPUT_POST, $key );
Expand Down

0 comments on commit 1a4d5ae

Please sign in to comment.