Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Load Custom Styles for Mantra Theme
- if ( is_user_logged_in() && current_user_can('administrator') ) {
- add_action('wp_enqueue_scripts', 'my_mantra_custom_styles');
- }
- function my_mantra_custom_styles() {
- wp_register_style('mantra-custom-styles', get_bloginfo('template_directory').'/custom-styles.css', false, '1.0', 'all');
- wp_enqueue_style('mantra-custom-styles');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement