ACF_Admin_Internal_Post_Type::current_screenpublicACF 5.0.0

This function is fired when loading the admin page before HTML has been rendered.

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

Хуки из метода

Возвращает

null. Ничего (null).

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

$ACF_Admin_Internal_Post_Type = new ACF_Admin_Internal_Post_Type();
$ACF_Admin_Internal_Post_Type->current_screen();

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

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

Код ACF_Admin_Internal_Post_Type::current_screen() ACF 6.4.2

public function current_screen() {
	if ( ! acf_is_screen( $this->post_type ) ) {
		return;
	}

	acf_disable_filters();
	acf_enqueue_scripts();

	add_action( 'admin_body_class', array( $this, 'admin_body_class' ) );
	add_filter( 'post_updated_messages', array( $this, 'post_updated_messages' ) );
	add_action( 'acf/input/admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
	add_action( 'acf/input/admin_head', array( $this, 'admin_head' ) );
	add_action( 'acf/input/form_data', array( $this, 'form_data' ) );
	add_action( 'acf/input/admin_footer', array( $this, 'admin_footer' ) );

	add_filter( 'acf/input/admin_l10n', array( $this, 'admin_l10n' ) );

	do_action( 'acf/internal_post_type/current_screen', $this->post_type );
}