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_init' , [ $this , 'register_notice_manager_panel' ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action('admin_print_footer_scripts', [$this,'admin_print_footer_scripts']);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function admin_enqueues(){
|
function admin_enqueues(){
|
||||||
@ -42,12 +40,6 @@ class NoticeManager{
|
|||||||
wp_enqueue_style( 'admin_notices', NOTICE_MANAGER_URL . 'css/admin_notices.css' );
|
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(){
|
function register_notice_manager_panel(){
|
||||||
if ( ! function_exists( 'add_screen_meta_link' ) )
|
if ( ! function_exists( 'add_screen_meta_link' ) )
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user