WordPress action hook
acf/create_field_options
Fired by 12 WordPress plugins, running on 250+ sites between them.
How to use acf/create_field_options
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'acf/create_field_options', function( $field ) {
// Your code runs here.
}, 10, 1 );Argument names come from Dooodl's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
12 plugins that fire acf/create_field_options
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields: Validated Field100+ installs
do_action( 'acf/create_field_options', $sub_field )validated_field_v4.php:566 -
Dooodl50+ installs
do_action( 'acf/create_field_options', $field )includes/libs/advanced-custom-fields/core/controllers/field_group.php:514 -
Fancy Grid Portfolio20+ installs
do_action( 'acf/create_field_options', $field )lib/advanced-custom-fields/core/controllers/field_group.php:490 -
Simple Content Adder20+ installs
do_action( 'acf/create_field_options', $field )lib/advanced-custom-fields/core/controllers/field_group.php:516 -
TSA Commerce20+ installs
do_action( 'acf/create_field_options', $field )vendors/acf/core/controllers/field_group.php:516 -
LogicalDOC WordPress Explorer10+ installs
do_action( 'acf/create_field_options', $field )advanced-custom-fields/core/controllers/field_group.php:516 -
Simply Documents10+ installs
do_action( 'acf/create_field_options', $field )lib/advanced-custom-fields/core/controllers/field_group.php:516 -
Church Options10+ installs
do_action( 'acf/create_field_options', $field )lib/advanced-custom-fields/core/controllers/field_group.php:516 -
Rexpansive Builder10+ installs
do_action( 'acf/create_field_options', $sub_field )admin/lib/acf/acf-repeater/includes/4-0/acf-repeater-field.php:696 -
Quick RecommendFewer than 10 installs
do_action( 'acf/create_field_options', $field )lib/advanced-custom-fields/core/controllers/field_group.php:516 -
ASD Feature MapsFewer than 10 installs
do_action( 'acf/create_field_options', $field )includes/advanced-custom-fields/core/controllers/field_group.php:516 -
Flaunt Your ClientsFewer than 10 installs
do_action( 'acf/create_field_options', $field )includes/advanced-custom-fields/core/controllers/field_group.php:514
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.