/** * Save or update custom CSS * * Called when "Save Settings" button is clicked * * @param string $css_file */ function save_custom_css($css_file) { if (!is_dir(SLPLUS_UPLOADDIR . "css/")) { wp_mkdir_p(SLPLUS_UPLOADDIR . "css/"); } $this->slplus->createobject_Activation(); $this->slplus->Activation->copy_newer_files(SLPLUS_PLUGINDIR . "css/{$css_file}", SLPLUS_UPLOADDIR . "css/{$css_file}"); }