/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* Plugin Name: Empty Plugin Plugin URI: http://trepmal.com/ Description: Does nothing - testing only Author: Kailey Lampert Version: 0.0 Author URI: http://kaileylampert.com/ */ /* Copyright (C) 2010 Kailey Lampert This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ $emptyplugin = new emptyplugin(); class emptyplugin { function emptyplugin() { } function menu() { $page = add_submenu_page('options-general.php', 'Empty Plugin', 'Empty Plugin', 'administrator', __FILE__, array(&$this, 'page')); // add_action('admin_print_scripts-'.$page, array(&$this, 'scripts')); // add_action('admin_print_scripts', array(&$this, 'scripts')); } function scripts() { wp_enqueue_script('jquery'); // wp_register_script('jquerycolorpicker',$plugin_path.'/js/colorpicker.js','jquery'); // wp_enqueue_script('jquerycolorpicker'); } function page() { echo '<div class="wrap">'; echo '<h2>'.__('Empty Plugin').'</h2>'; echo '</div>'; }// end function }//end class ?>
URL: http://trepmal.com/plugins/empty-plugin/