Skip to content

dreaddymck/wp-plugin-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-plugin-class

starter class for wordpress plugin

example installation instructions.

shortcode: [dmck-starter-plugin]

== Installation ==

  1. Upload plugin folder to /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add shortcode to pages or posts as needed.

Have fun. Fork. Share.

rename the values for to suite your needs

	public $plugin_title 			= '(DMCK) starter plugin';
	public $plugin_slug				= 'dmck_starter_plugin';
	public $plugin_settings_group 	= 'dmck-starter_plugin-settings-group';
	public $shortcode				= "dmck-starter_plugin";	

add content, includes to.

	function include_file($options) {
		//include (plugin_dir_path(__FILE__).'file.php');
		echo "<h1>Content</h1>";
	}

	function admin_menu_include() {
		if ( !current_user_can( 'read' ) )  {
			wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
		}
		//include ( plugin_dir_path(__FILE__).'admin.php' );			
		echo "<h1>Admin Stuff</h1>";
		
	}

About

starter class for wordpress plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published