remove all footer scripts functionality
This commit is contained in:
parent
32d2fd9e06
commit
7ca0ba6ed2
@ -32,8 +32,6 @@ class NoticeManager{
|
||||
add_action( 'admin_init' , [ $this , 'register_notice_manager_panel' ] );
|
||||
}
|
||||
|
||||
add_action('admin_print_footer_scripts', [$this,'admin_print_footer_scripts']);
|
||||
|
||||
}
|
||||
|
||||
function admin_enqueues(){
|
||||
@ -41,12 +39,6 @@ class NoticeManager{
|
||||
wp_localize_script( 'notice_manager_panel', 'noticeManager', camelCaseKeys($this->options) );
|
||||
wp_enqueue_style( 'admin_notices', NOTICE_MANAGER_URL . 'css/admin_notices.css' );
|
||||
}
|
||||
|
||||
function admin_print_footer_scripts(){
|
||||
|
||||
// echo '<script defer>var noticeManager=' .json_encode(camelCaseKeys($this->options)) . ';</script>';
|
||||
// echo '<script defer src="'. NOTICE_MANAGER_URL . 'js/notice_manager_panel.js' .'"></script>';
|
||||
}
|
||||
|
||||
function register_notice_manager_panel(){
|
||||
if ( ! function_exists( 'add_screen_meta_link' ) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user