global $hook_suffix;
if ( in_array( $hook_suffix,
apply_filters( 'akismet_admin_page_hook_suffixes', array
( 'index.php', # dashboard
'edit-comments.php',
'comment.php',
'post.php',
'settings_page_akismet-key-config',
'jetpack_page_akismet-key-config',
'plugins.php',
) ) ) ) { wp_register_style( 'akismet',
plugin_dir_url( __FILE__
) . '_inc/akismet.css', array
(),
filemtime( dirname( __FILE__
) . '/_inc/akismet.css'
) );
wp_enqueue_style( 'akismet'
);
wp_register_style( 'akismet-font-inter',
plugin_dir_url( __FILE__
) . '_inc/fonts/inter.css', array
(),
filemtime( dirname( __FILE__
) . '/_inc/fonts/inter.css'
) );
wp_enqueue_style( 'akismet-font-inter'
);
wp_register_style( 'akismet-admin',
plugin_dir_url( __FILE__
) . '_inc/akismet-admin.css', array
(),
filemtime( dirname( __FILE__
) . '/_inc/akismet-admin.css'
) );
wp_enqueue_style( 'akismet-admin'
);
wp_register_script( 'akismet.js',
plugin_dir_url( __FILE__
) . '_inc/akismet.js', array
( 'jquery'
), AKISMET_VERSION
);
wp_enqueue_script( 'akismet.js'
);