ACF_Admin::current_screenpublicACF 5.9.0

Adds custom functionality to "ACF" admin pages.

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

Хуков нет.

Возвращает

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

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

$ACF_Admin = new ACF_Admin();
$ACF_Admin->current_screen( $screen );
$screen(обязательный)
.

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

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

Код ACF_Admin::current_screen() ACF 6.4.2

public function current_screen( $screen ) {
	// Determine if the current page being viewed is "ACF" related.
	if ( isset( $screen->post_type ) && in_array( $screen->post_type, acf_get_internal_post_types(), true ) ) {
		add_action( 'in_admin_header', array( $this, 'in_admin_header' ) );
		add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
		add_filter( 'update_footer', array( $this, 'admin_footer_version_text' ) );
		$this->setup_help_tab();
		$this->maybe_show_import_from_cptui_notice();
	}
}