Appearance -> Custom Codes after installing the plugin. * Version: 1.0 * Author: Saifudheen Mak * Author URI: http://saifumak.com * License: GPL2 * Text Domain: add-custom-codes */ add_action( 'init', 'accodes_load_textdomain' ); function accodes_load_textdomain() { load_plugin_textdomain( 'add-custom-codes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } /*--------------------------------- styles and scripts for plugin page -----------------------------------------*/ function accodes_styles_init() { wp_register_style( 'add-custom-codes', plugins_url( 'add-custom-codes/css/styles.css' ) ); wp_enqueue_style( 'add-custom-codes' ); wp_register_style( 'add-custom-codes1', plugins_url( 'add-custom-codes/css/codemirror.css' ) ); wp_enqueue_style( 'add-custom-codes1' ); wp_register_script( 'add-custom-codes2', plugins_url( 'add-custom-codes/js/codemirrornew.js' ) ); wp_enqueue_script( 'add-custom-codes2' ); wp_register_script( 'add-custom-codes3', plugins_url( 'add-custom-codes/js/css.js' ) ); wp_enqueue_script( 'add-custom-codes3' ); wp_register_script( 'add-custom-codes4', plugins_url( 'add-custom-codes/js/script.js' ) ); wp_enqueue_script( 'add-custom-codes4' ); wp_register_script( 'add-custom-codes5', plugins_url( 'add-custom-codes/js/addon/placeholder.js' ) ); wp_enqueue_script( 'add-custom-codes5' ); } add_action( 'admin_init', 'accodes_styles_init' ); /*------------------------------ add menu icon ------------------------*/ add_action('admin_menu', 'accodes_menu'); function accodes_menu() { add_theme_page('Add Custom Codes', 'Custom Codes', 'administrator', 'add-custom-codes', 'accodes_settings_page'); } function accodes_settings_page() { ?>
We are glad that the plugin helped you! It would be great if you could donate something to support further development of this plugin and other new plugins that are on the way. You can choose how much to donate!