Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'admin_print_styles', 'plugin_theme_support' );
- function plugin_theme_support(){
- $theme_support = get_option( 'plugin_theme_support', 0 );
- if( 0 == $theme_support && ! current_theme_supports( 'plugin_theme_support' ) ){
- add_action( 'admin_notices', 'theme_does_not_support_plugin' );
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement