ACF_Admin_UI_Options_Page::post_updated_messages │ public │ ACF 6.2

Customizes the messages shown when editing a UI options page.

Method of the class: ACF_Admin_UI_Options_Page{}

No Hooks.

Returns

array.

Usage

$ACF_Admin_UI_Options_Page = new ACF_Admin_UI_Options_Page();
$ACF_Admin_UI_Options_Page->post_updated_messages( $messages );
$messages(array) (required)
Post type messages.

Changelog

Since 6.2 Introduced.

ACF_Admin_UI_Options_Page::post_updated_messages() code ACF 6.8.8

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

	return $messages;
}