Skip to content

Instantly share code, notes, and snippets.

@rahuladams
Last active October 30, 2020 04:34
Show Gist options
  • Save rahuladams/02cf0470a4df4e621863a52c727d536d to your computer and use it in GitHub Desktop.
Save rahuladams/02cf0470a4df4e621863a52c727d536d to your computer and use it in GitHub Desktop.
//Add Custom Style
add_action('wp_enqueue_scripts','custom_child_styles_scripts',999);
function custom_child_styles_scripts()
{
wp_enqueue_style('custom-css',get_stylesheet_directory_uri().'/dist/custom.css',array(),'1.0.0',false);
}
//Removed unwanted menus
add_action( 'admin_init', 'customize_remove_admin_menus' );
function customize_remove_admin_menus() {
remove_menu_page( 'edit-comments.php' ); //Comments
remove_menu_page( 'tools.php' ); //Tools
remove_menu_page( 'options-general.php' ); //Settings
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment