acf_admin_field_group::post_updated_messages()publicACF 5.0.0

post_updated_messages

This function will customize the message shown when editing a field group

@type    action (post_updated_messages)

{} Это метод класса: acf_admin_field_group{}

Хуков нет.

Возвращает

$messages.

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

$acf_admin_field_group = new acf_admin_field_group();
$acf_admin_field_group->post_updated_messages( $messages );
$messages (обязательный)
-

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

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

Код acf_admin_field_group::post_updated_messages() ACF 5.10.2

function post_updated_messages( $messages ) {

	// append to messages
	$messages['acf-field-group'] = array(
		0  => '', // Unused. Messages start at index 1.
		1  => __( 'Field group updated.', 'acf' ),
		2  => __( 'Field group updated.', 'acf' ),
		3  => __( 'Field group deleted.', 'acf' ),
		4  => __( 'Field group updated.', 'acf' ),
		5  => false, // field group does not support revisions
		6  => __( 'Field group published.', 'acf' ),
		7  => __( 'Field group saved.', 'acf' ),
		8  => __( 'Field group submitted.', 'acf' ),
		9  => __( 'Field group scheduled for.', 'acf' ),
		10 => __( 'Field group draft updated.', 'acf' ),
	);

	// return
	return $messages;
}