WPMelon Product Customization Fields 1.1.0 has 6 actions and 27 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WPMelon Product Customization Fields fires an action
add_action( 'wpm_pcf_after_enqueue_admin', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value WPMelon Product Customization Fields is about to use
add_filter( 'wpm_pcf_condition_operators', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires after the admin bundle is enqueued (Pro enqueues its bundle here). */ do_action( 'wpm_pcf_after_enqueue_admin', self::SCRIPT_HANDLE ); -
/** * Fires after the storefront runtime is enqueued, once per call: twice on a * single product page (head, then the form), once per form elsewhere. Pro * enqueues its storefront bundle here, depending on $handle. */ do_action( 'wpm_pcf_after_enqueue_frontend', self::HANDLE, $product ); -
/** * Filters additional condition operators: name => fn( mixed $value, mixed * $rule_value ): bool. */ apply_filters( 'wpm_pcf_condition_operators', [] ); -
/** * Filters the condition sources: name => fn( \WC_Product $product, ?array * $chosen ): ?array. */ apply_filters( 'wpm_pcf_condition_sources', [] ); -
/** * Filters the plain-text hint printed under a field's label and description, * before its control. '' prints nothing. */ apply_filters( 'wpm_pcf_field_hint', '', $field, $product ); -
/** * Filters the registered field types. */ apply_filters( 'wpm_pcf_field_types', $builtins ); -
/** * Filters a field's entry in the storefront config, so the owner of a rule on * it (Pro) can add the data its storefront code needs. The id and type can't * change. */ apply_filters( 'wpm_pcf_frontend_field', $entry, $field, $product ); -
/** * Fires after a group is permanently deleted (WPML string removal listens). */ do_action( 'wpm_pcf_group_deleted', $group ); -
/** * Fires after a group is inserted or updated (WPML string registration * listens). */ do_action( 'wpm_pcf_group_saved', $saved, $previous ); -
/** * Filters the admin app config printed as window.wpmPcf. */ apply_filters( 'wpm_pcf_js_config', $config ); -
/** * Filters the notes after a line's amounts: short plain-text strings, such as * why the amount is what it is ("12 letters"). */ apply_filters( 'wpm_pcf_price_notes', [], $line ); -
/** * Filters the text after a field's or option's label for a price type Free * doesn't format (plain text, without the brackets; '' shows nothing). Only * asked for a spec with a non-zero amount. */ apply_filters( 'wpm_pcf_price_suffix', '', $spec, $product ); -
/** * Filters additional price types: name => fn( array $spec, float $base, array * $context ): float. */ apply_filters( 'wpm_pcf_price_types', [] ); -
/** * Filters the REST controllers registered under wpm-pcf/v1. */ apply_filters( 'wpm_pcf_rest_controllers', $controllers, $this ); -
/** * Filters the check of a group's customer role rule: fn( array $rule, int * $user_id ): bool, or null. `$rule` is Group::role_rule() (mode `include` or * `exclude`), `$user_id` the shopper (0 for a guest). Without one, a group * with such a rule is paused (`assignment:roles`). Pro: User_Roles. */ apply_filters( 'wpm_pcf_role_check', null ); -
/** * Filters a sanitized field, so the owner of its type (Pro) can clean its own * keys from the raw input. The id and type can't change. */ apply_filters( 'wpm_pcf_sanitize_field', $field, $raw ); -
/** * Filters the boolean settings exposed by GET/PUT /wpm-pcf/v1/settings. */ apply_filters( 'wpm_pcf_settings_definitions', $definitions ); -
/** * Filters the product types that can carry option groups. */ apply_filters( 'wpm_pcf_supported_product_types', [ 'simple', 'variable' ] ); -
/** * Filters the translation plugin option strings and assignment work with. */ apply_filters( 'wpm_pcf_translation_plugin', $detected ); -
/** * Filters the problems that block saving a group's fields (and pause a group * already saved with them). */ apply_filters( 'wpm_pcf_validate_fields', [], $fields ); -
/** * Filters the error for a value its field type found valid. Return a * translated message to refuse it, or null. */ apply_filters( 'wpm_pcf_validate_value', null, $value, $field, $moment ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_object_id', $id, $type, false, $language ); -
do_action( 'wpml_register_single_string', self::CONTEXT, $name, $text ); -
do_action( 'wpml_switch_language', $default ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins → Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', true ); -
apply_filters( 'wpm_pcf_pending_max_bytes', self::MAX_PENDING_BYTES ); -
apply_filters( 'wpm_pcf_pending_max_files', self::MAX_PENDING_FILES ); -
apply_filters( 'wpm_pcf_upload_client_ip', $ip ); -
apply_filters( 'wpm_pcf_upload_rate_limit', self::RATE_LIMIT ); -
apply_filters( 'wpml_active_languages', null, [ 'skip_missing' => 0 ] ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_translate_single_string', $text, self::CONTEXT, $name );
Generated from WPMelon Product Customization Fields's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: