acf/registered_location_type хук-событиеACF 5.9.0

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_register_location_type()
acf/registered_location_type
acf/includes/locations.php 53
do_action( 'acf/registered_location_type', $name, $location_type );

Где используется хук в Advanced Custom Fields

Использование не найдено.