admin_url( 'admin-ajax.php' ) )); wp_enqueue_script( 'my_awesome_script',plugin_dir_url(__FILE__).'js/awesome.js'); wp_enqueue_script( 'awesome_codemirror',plugin_dir_url(__FILE__).'codemirror/lib/codemirror.js'); wp_enqueue_script( 'awesome_codemirrorcssjs',plugin_dir_url(__FILE__).'codemirror/mode/css/css.js'); wp_enqueue_script( 'codemirrocsshintjs',plugin_dir_url(__FILE__).'codemirror/addon/hint/css-hint.js'); wp_enqueue_script( 'codemirroshowhintjs',plugin_dir_url(__FILE__).'codemirror/addon/hint/show-hint.js'); wp_enqueue_script( 'closebrackets',plugin_dir_url(__FILE__).'codemirror/addon/edit/closebrackets.js'); wp_enqueue_script( 'awesome_javascript', plugin_dir_url(__FILE__).'codemirror/mode/javascript/javascript.js'); wp_enqueue_script( 'hsaacjshints', plugin_dir_url(__FILE__).'codemirror/addon/hint/javascript-hint.js'); wp_enqueue_script( 'hsaaclintjs', plugin_dir_url(__FILE__).'codemirror/addon/lint/lint.js'); wp_enqueue_script( 'hsaacmatchbrackets',plugin_dir_url(__FILE__).'codemirror/addon/edit/matchbrackets.js'); wp_enqueue_script( 'hsaacjavascriptlint', plugin_dir_url(__FILE__).'codemirror/addon/lint/javascript-lint.js'); wp_enqueue_script( 'hsaacplaceholder', plugin_dir_url(__FILE__).'codemirror/addon/display/placeholder.js'); wp_enqueue_script( 'hsaacactiveline', plugin_dir_url(__FILE__).'codemirror/addon/selection/active-line.js'); wp_enqueue_script( 'hsaacjshint', plugin_dir_url(__FILE__).'codemirror/addon/jshint/jshint.js'); wp_enqueue_script( 'hsaacjsonlintjs', plugin_dir_url(__FILE__).'codemirror/addon/jshint/jsonlint.js'); wp_register_style( 'admincss',plugin_dir_url(__FILE__).'css/styles.css'); wp_enqueue_style( 'admincss' ); wp_register_style( 'awesome_codemirrorcss',plugin_dir_url(__FILE__).'codemirror/lib/codemirror.css' ); wp_enqueue_style( 'awesome_codemirrorcss' ); wp_register_style( 'codemirroshowhintcss',plugin_dir_url(__FILE__).'codemirror/addon/hint/show-hint.css' ); wp_enqueue_style( 'codemirroshowhintcss' ); wp_register_style( 'lintcss', plugin_dir_url(__FILE__).'codemirror/addon/lint/lint.css'); wp_enqueue_style( 'lintcss' ); } public function addMenus(){?>

Welcome to Ajax Custom CSS/JS

Ajax Custom CSS/JS plugin is very easy and simple to use with powerful features. User can add their own custom css/js without even changing the core files of themes or plugins. So they will not have to worry about messing with the core files of theme or plugin.

In this plugin, we have used the ajax functionality for saving the css/js to admin panel. So this plugin will work faster than the any other plugin without even reloading the page. So we have build to plugin to overcome the reloading issue.

This plugin also provides the powerful features of CODEMIRROR. We have integrated the full feldge library of codemirror into our plugin. So while editing css, if user types the wrong property of css , then it will show the wrong css property in red color. We have also provided the Autocomplete features for css. While adding new css , it will show the autocomplete options when you will start typing".

We will keep updating the features of this plugin. So please stay in touch.

If you see any issue or bug , before giving us negative reviews. Please dont hesitate to ask us for the support.

THANK YOU FOR CHOSING US !!!!!!!!
prefix . 'awesomecustom'; $custom_query = 'SELECT awesomecss FROM '.$table_name.' where id =1'; $checkdata = $wpdb->get_results($custom_query); $checkdata; if($checkdata != NULL){ $result = $wpdb->update( $table_name, array( 'awesomecss' => $csscontent, ) , array('id' => 1) ); } else{ $result = $wpdb->insert( $table_name, array( 'awesomecss' => $csscontent, 'id' => 1 ) ); } echo $getcontent = $csscontent; die(); } public function myawesomecallbackjs(){ global $wpdb; $jscontent = stripslashes_deep($_REQUEST['getJs']); ;$table_name = $wpdb->prefix . 'awesomecustom'; $custom_query = 'SELECT awesomejs FROM '.$table_name.' where id = 1'; $checkdata = $wpdb->get_results($custom_query); $checkdata; if($checkdata != NULL){ $result = $wpdb->update( $table_name, array( 'awesomejs' => $jscontent, ) , array('id' => 1) ); } else{ $result = $wpdb->insert( $table_name, array( 'awesomejs' => $jscontent, 'id' => 1 ) ); } echo $getcontent = $jscontent; die(); } public function addoptionspage(){ global $wpdb; $table_name = $wpdb->prefix . 'awesomecustom'; $getcontent = $wpdb->get_results( "SELECT awesomecss FROM $table_name "); $storecss = $getcontent[0]->awesomecss; ?>

Add Custom Css

Add CSS
prefix . 'awesomecustom'; $getcontent = $wpdb->get_results( "SELECT awesomejs FROM $table_name "); $storejs = $getcontent[0]->awesomejs; ?>

Add Custom JS

Add JS