acf/registered_location_type
Fires after a location type is registered.
Usage
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(string)
- The location type name.
- $location_type(ACF_Location)
- The location type instance.
Changelog
| Since 5.9.0 | Introduced. |
Where the hook is called
acf/registered_location_type
acf/includes/locations.php 64
do_action( 'acf/registered_location_type', $name, $location_type );