ACF::register_post_status()
Registers the ACF post statuses.
Метод класса: ACF{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$ACF = new ACF(); $ACF->register_post_status();
Список изменений
С версии 5.3.2 | Введена. |
Код ACF::register_post_status() ACF::register post status ACF 6.0.4
public function register_post_status() { // Register the Inactive post status. register_post_status( 'acf-disabled', array( 'label' => _x( 'Inactive', 'post status', 'acf' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, /* translators: counts for inactive field groups */ 'label_count' => _n_noop( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', 'acf' ), ) ); }