Created
October 15, 2014 04:45
-
-
Save ihorvorotnov/3506b95738178445f3ac to your computer and use it in GitHub Desktop.
Basic WordPress plugin, non-OOP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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