acf/include_location_rules
Fires after location types have been included.
Usage
add_action( 'acf/include_location_rules', 'wp_kama_acf_include_location_rules_action' );
/**
* Function for `acf/include_location_rules` action-hook.
*
* @param int $ACF_FIELD_API_VERSION ACF_FIELD_API_VERSION The field API version.
*
* @return void
*/
function wp_kama_acf_include_location_rules_action( $ACF_FIELD_API_VERSION ){
// action...
}
- $ACF_FIELD_API_VERSION(int)
- ACF_FIELD_API_VERSION The field API version.
Changelog
| Since 5.0.0 | Introduced. |
Where the hook is called
acf/include_location_rules
acf/acf.php 443
do_action( 'acf/include_location_rules', ACF_FIELD_API_VERSION );
Where the hook is used in Advanced Custom Fields PRO
acf/pro/acf-pro.php 65
add_action( 'acf/include_location_rules', array( $this, 'include_location_rules' ), 5 );