Skip to content

Instantly share code, notes, and snippets.

@juliankrispel
Last active December 11, 2015 10:39
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 juliankrispel/4588586 to your computer and use it in GitHub Desktop.
Save juliankrispel/4588586 to your computer and use it in GitHub Desktop.
Wordpress snippets
<?php
/* Registering Post Types */
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'acme_product',
array(
'labels' => array(
'name' => __( 'Slides' ),
'singular_name' => __( 'Slide' )
),
'public' => true,
'has_archive' => true,
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment