Just a shell of a plugin for quick testing. Doesn’t do anything out of the box except create a page under Settings called “Empty Plugin”.
The syntax highlighter is adding a <span> tag – I don’t know why, it shouldn’t be there..
<?php
/*
Plugin Name: Empty Plugin
Plugin URI: https://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() {
add_action('admin_menu', array(&$this, 'menu'));
}
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() {
$plugin_path = '/'.PLUGINDIR.'/'.plugin_basename(dirname(__FILE__));
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
?>
I want to add more to this later, but until then (or in case I don’t get around to it) there’s this.
5 thoughts on “Empty Plugin”