WordPress action hook
exopite_sof_before_add_field
Fired by 4 WordPress plugins, running on 40K+ sites between them.
How to use exopite_sof_before_add_field
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'exopite_sof_before_add_field', function( $field, $config ) {
// Your code runs here.
}, 10, 2 );Argument names come from OoohBoi Steroids for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire exopite_sof_before_add_field
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
OoohBoi Steroids for Elementor40,000+ installs
do_action( 'exopite_sof_before_add_field', $field, $this->config )inc/exopite-simple-options/exopite-simple-options-framework-class.php:1408 -
Free Click To Chat Button by TimelinesAI70+ installs
do_action( 'exopite_sof_before_add_field', $field, $this->config )admin/exopite-simple-options/exopite-simple-options-framework-class.php:1398 -
Vanilla Bean Slack Hooker20+ installs
do_action( 'exopite_sof_before_add_field', $field, $this->config )options-framework/exopite-simple-options/exopite-simple-options-framework-class.php:1497 -
SWELLEnterpriseFewer than 10 installs
do_action( 'exopite_sof_before_add_field', $field, $this->config )admin/exopite-simple-options/exopite-simple-options-framework-class.php:1400
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.