ACF_Admin_Email_Opt_In_Banner::current_screenpublicACF 6.8.6

Hooks the banner onto ACF admin screens only.

Method of the class: ACF_Admin_Email_Opt_In_Banner{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 6.8.6 Introduced.

ACF_Admin_Email_Opt_In_Banner::current_screen() code ACF 6.8.8

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

	add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
	add_action( 'admin_footer', array( $this, 'render' ) );
}