acf/include_location_rules
Fires after location types have been included.
Использование
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.
Список изменений
С версии 5.0.0 | Введена. |
Где вызывается хук
acf/acf.php 330
do_action( 'acf/include_location_rules', ACF_FIELD_API_VERSION );
Где используется хук в Advanced Custom Fields PRO
acf/pro/acf-pro.php 42
add_action( 'acf/include_location_rules', array( $this, 'include_location_rules' ), 5 );