ACF_Admin_Post_type::post_updated_messagespublicACF 5.0.0

This function will customize the message shown when editing a post type.

Метод класса: ACF_Admin_Post_type{}

Хуков нет.

Возвращает

Массив.

Использование

$ACF_Admin_Post_type = new ACF_Admin_Post_type();
$ACF_Admin_Post_type->post_updated_messages( $messages );
$messages(массив) (обязательный)
Post type messages.

Список изменений

С версии 5.0.0 Введена.

Код ACF_Admin_Post_type::post_updated_messages() ACF 6.4.2

public function post_updated_messages( $messages ) {
	$messages['acf-post-type'] = array(
		0  => '', // Unused. Messages start at index 1.
		1  => $this->post_type_created_message(), // Updated.
		2  => $this->post_type_created_message(),
		3  => __( 'Post type deleted.', 'acf' ),
		4  => __( 'Post type updated.', 'acf' ),
		5  => false, // Post type does not support revisions.
		6  => $this->post_type_created_message( true ), // Created.
		7  => __( 'Post type saved.', 'acf' ),
		8  => __( 'Post type submitted.', 'acf' ),
		9  => __( 'Post type scheduled for.', 'acf' ),
		10 => __( 'Post type draft updated.', 'acf' ),
	);

	return $messages;
}