enter_title_here filter-hookACF 1.0

This is a WordPress - enter_title_here hook. The plugin just uses it.

Filters the title field placeholder text.

Usage

add_filter( 'enter_title_here', 'wp_kama_enter_title_here_filter', 10, 2 );

/**
 * Function for `enter_title_here` filter-hook.
 * 
 * @param string  $text Placeholder text.
 * @param WP_Post $post Post object.
 *
 * @return string
 */
function wp_kama_enter_title_here_filter( $text, $post ){

	// filter...
	return $text;
}
$text(string)
Placeholder text.
Default: 'Add title'
$post(WP_Post)
Post object.

Where the hook is called

In file: /includes/admin/views/global/form-top.php
enter_title_here
acf/includes/admin/views/global/form-top.php 13
$acf_title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );

Where the hook is used in Advanced Custom Fields PRO

acf/includes/acf-post-type-functions.php 293
$export .= "\r\nadd_filter( 'enter_title_here', function( \$default, \$post ) {\r\n";
acf/includes/post-types/class-acf-post-type.php 85
add_filter( 'enter_title_here', array( $this, 'enter_title_here' ), 10, 2 );