acf/field_group/prefill_title

acf/field_group/prefill_title

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.1.6

apply_filters('acf/field_group/prefill_title') is found 1 times:

  • /includes/admin/views/global/form-top.php line 17
    	$acf_use_post_type = acf_get_post_type_from_request_args( 'add-fields' );
    	$acf_use_taxonomy  = acf_get_taxonomy_from_request_args( 'add-fields' );
    
    	/* translators: %s - singular label of post type/taxonomy, i.e. "Movie"/"Genre" */
    	$acf_prefilled_title = (string) apply_filters( 'acf/field_group/prefill_title', __( '%s fields', 'acf' ) );
    
    	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'] );
    	} else {