acf/field_group/prefill_title filter-hookACF 6.1.5

Sets a default title to be prefilled (e.g. "Movies Fields") for a post type or taxonomy.

Usage

add_filter( 'acf/field_group/prefill_title', 'wp_kama_acf_field_group_prefill_title_filter' );

/**
 * Function for `acf/field_group/prefill_title` filter-hook.
 * 
 * @param string $acf_prefilled_title A string to define the prefilled title for a post type or
 *                                    taxonomy.
 *
 * @return string
 */
function wp_kama_acf_field_group_prefill_title_filter( $acf_prefilled_title ){
	// filter...
	return $acf_prefilled_title;
}
$acf_prefilled_title(string)
A string to define the prefilled title for a post type or taxonomy.

Changelog

Since 6.1.5 Introduced.

Where the hook is called

In file: /includes/admin/views/global/form-top.php
acf/field_group/prefill_title
acf/includes/admin/views/global/form-top.php 38
$acf_prefilled_title = (string) apply_filters( 'acf/field_group/prefill_title', $acf_prefilled_title );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.