Skip to content

Instantly share code, notes, and snippets.

@ihorvorotnov
Created October 15, 2014 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihorvorotnov/3506b95738178445f3ac to your computer and use it in GitHub Desktop.
Save ihorvorotnov/3506b95738178445f3ac to your computer and use it in GitHub Desktop.
Basic WordPress plugin, non-OOP
<?php
/**
* Plugin Name: My Custom Post Types
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
* Description: A brief description of the Plugin.
* Version: 1.0.0
* Author: My Name
* Author URI: http://URI_Of_The_Plugin_Author
* License: A "Slug" license name e.g. GPL2
*/
add_action( 'init', 'my_register_post_types' );
function my_register_post_types() {
$args = array();
register_post_type( 'post_type_name', $args );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment