This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/modules/custom-css.php
2018-03-21 18:19:20 +00:00

30 lines
863 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Module Name: Custom CSS
* Module Description: Customize your sites CSS without modifying your theme.
* Sort Order: 2
* First Introduced: 1.7
* Requires Connection: No
* Auto Activate: Yes
* Module Tags: Appearance
* Additional Search Queries: css, customize, custom, style, editor, less, sass, preprocessor, font, mobile, appearance, theme, stylesheet
*/
function jetpack_load_custom_css() {
include dirname( __FILE__ ) . "/custom-css/custom-css.php";
}
add_action( 'jetpack_modules_loaded', 'custom_css_loaded' );
function custom_css_loaded() {
Jetpack::enable_module_configurable( __FILE__ );
Jetpack::module_configuration_load( __FILE__, 'custom_css_configuration_load' );
}
function custom_css_configuration_load() {
wp_safe_redirect( admin_url( 'themes.php?page=editcss#settingsdiv' ) );
exit;
}
jetpack_load_custom_css();