ACF_Admin_UI_Options_Page::post_updated_messages
Customizes the messages shown when editing a UI options page.
Метод класса: ACF_Admin_UI_Options_Page{}
Хуков нет.
Возвращает
array.
Использование
$ACF_Admin_UI_Options_Page = new ACF_Admin_UI_Options_Page(); $ACF_Admin_UI_Options_Page->post_updated_messages( $messages );
- $messages(массив) (обязательный)
- Post type messages.
Список изменений
| С версии 6.2 | Введена. |
Код ACF_Admin_UI_Options_Page::post_updated_messages() ACF Admin UI Options Page::post updated messages 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;
}