".$options['customcss']."";
}
}
function swp_myplugins_custom_css_settings() {
register_setting( 'swp_myplugins_custom_css_options', 'swp_myplugins_custom_css_options', '' );
add_settings_section( 'custom_css_settings', '', 'swp_myplugins_custom_css_heading', 'swp_myplugins_css_custom_css' );
add_settings_field( 'swp_myplugins_custom_css_setting', '', 'swp_myplugins_custom_css_setting', 'swp_myplugins_css_custom_css', 'custom_css_settings' );
}
add_action( 'admin_init', 'swp_myplugins_custom_css_settings' );
function swp_myplugins_custom_css_heading() {
echo 'Custom Css
Enter your CSS code in the field below. Do not include any tags or HTML in the field. Custom CSS entered here will override the theme CSS. In some cases, the !important tag may be needed. Dont URL encode image or svg paths. Contents of this field will be auto encoded.
';
}
function swp_myplugins_custom_css_setting() {
$options = get_option( 'swp_myplugins_custom_css_options' );
?>