ACF_Admin::current_screenpublicACF 5.9.0

Adds custom functionality to "ACF" admin pages.

Method of the class: ACF_Admin{}

No Hooks.

Returns

void. Nothing (null).

Usage

$ACF_Admin = new ACF_Admin();
$ACF_Admin->current_screen( $screen );
$screen(required)
.

Changelog

Since 5.9.0 Introduced.

ACF_Admin::current_screen() code ACF 6.8.8

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();
	}
}