ACF_Admin_Email_Opt_In_Banner::current_screen
Hooks the banner onto ACF admin screens only.
Метод класса: ACF_Admin_Email_Opt_In_Banner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Admin_Email_Opt_In_Banner = new ACF_Admin_Email_Opt_In_Banner(); $ACF_Admin_Email_Opt_In_Banner->current_screen();
Список изменений
| С версии 6.8.6 | Введена. |
Код ACF_Admin_Email_Opt_In_Banner::current_screen() ACF Admin Email Opt In Banner::current screen 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' ) );
}