Changes to lcp-button
This commit is contained in:
@ -229,10 +229,7 @@ function mytheme_display_icon_sets() {
|
||||
|
||||
// Enqueue the dashboard styles only on the icon-management page
|
||||
function mytheme_enqueue_dashboard_styles($hook) {
|
||||
// Only load the styles on the icon-management page
|
||||
if ($hook != 'toplevel_page_icon-management') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Enqueue CSS for the dashboard
|
||||
wp_enqueue_style(
|
||||
@ -354,9 +351,7 @@ function mytheme_create_icons_table() {
|
||||
|
||||
function mytheme_enqueue_dashboard_scripts($hook) {
|
||||
// Only load the script on the icon-management page
|
||||
if ($hook != 'toplevel_page_icon-management') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Enqueue JavaScript for AJAX
|
||||
wp_enqueue_script(
|
||||
|
||||
Reference in New Issue
Block a user