acf/registered_location_type
Fires after a location type is registered.
Использование
add_action( 'acf/registered_location_type', 'wp_kama_acf_registered_location_type_action', 10, 2 ); /** * Function for `acf/registered_location_type` action-hook. * * @param string $name The location type name. * @param ACF_Location $location_type The location type instance. * * @return void */ function wp_kama_acf_registered_location_type_action( $name, $location_type ){ // action... }
- $name(строка)
- The location type name.
- $location_type(ACF_Location)
- The location type instance.
Список изменений
С версии 5.9.0 | Введена. |
Где вызывается хук
acf/registered_location_type
acf/includes/locations.php 53
do_action( 'acf/registered_location_type', $name, $location_type );