acf/field_group/prefill_title
acf/field_group/prefill_title
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/field_group/prefill_title') is found 1 times:
- /includes/admin/views/global/form-top.php line 282425262728293031323334
* @since 6.1.5
*
* @param string
$acf_prefilled_title
A string to define the prefilled title
for
a post type
or
taxonomy.
*/
$acf_prefilled_title
= (string) apply_filters(
'acf/field_group/prefill_title'
,
$acf_prefilled_title
);
if
(
$acf_use_post_type
&& !
empty
(
$acf_use_post_type
[
'labels'
][
'singular_name'
] ) ) {
$acf_prefilled_title
= sprintf(
$acf_prefilled_title
,
$acf_use_post_type
[
'labels'
][
'singular_name'
] );
}
elseif
(
$acf_use_taxonomy
&& !
empty
(
$acf_use_taxonomy
[
'labels'
][
'singular_name'
] ) ) {
$acf_prefilled_title
= sprintf(
$acf_prefilled_title
,
$acf_use_taxonomy
[
'labels'
][
'singular_name'
] );
}
elseif
(
$acf_use_options_page
&& !
empty
(
$acf_use_options_page
[
'page_title'
] ) ) {