WordPress filter hook
hd_add_new_field_components
Fired by 2 WordPress plugins, running on 6,100+ sites between them.
How to use hd_add_new_field_components
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( 'hd_add_new_field_components', function( $components ) {
// Change $components here.
return $components;
}, 10, 1 );Argument names come from HD Quiz's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire hd_add_new_field_components
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
HD Quiz6,000+ installs
apply_filters( 'hd_add_new_field_components', $components )hdfields/classes/sanitize.php:76 -
HD Quiz100+ installs
apply_filters( 'hd_add_new_field_components', $components )hdfields/classes/sanitize.php:50
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.