legacy.php
10 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Remove the menu item for the CSS editor that comes bundled with SiteOrigin themes |
| 5 | */ |
| 6 | function siteorigin_css_legacy_remove_legacy_actions(){ |
| 7 | remove_action( 'admin_menu', 'siteorigin_custom_css_admin_menu' ); |
| 8 | remove_action( 'wp_head', 'siteorigin_custom_css_display', 15 ); |
| 9 | } |
| 10 | add_action( 'after_setup_theme', 'siteorigin_css_legacy_remove_legacy_actions', 100 ); |