This file contains hidden or 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
$labels = array( | |
'name' => _x( 'Blog Tags', 'Taxonomy General Name', 'text_domain' ), | |
'singular_name' => _x( 'Blog Tag', 'Taxonomy Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Blog Tag', 'text_domain' ), | |
'all_items' => __( 'All Items', 'text_domain' ), | |
'parent_item' => __( 'Parent Item', 'text_domain' ), | |
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), | |
'new_item_name' => __( 'New Item Name', 'text_domain' ), | |
'add_new_item' => __( 'Add New Item', 'text_domain' ), | |
'edit_item' => __( 'Edit Item', 'text_domain' ), |
This file contains hidden or 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
add_action( 'init', 'register_cpt_blog_entry' ); | |
function register_cpt_blog_entry() { | |
$labels = array( | |
'name' => _x( 'Blog Entries', 'blog_entry' ), | |
'singular_name' => _x( 'Blog Entry', 'blog_entry' ), | |
'add_new' => _x( 'Add New', 'blog_entry' ), | |
'add_new_item' => _x( 'Add New Blog Entry', 'blog_entry' ), | |
'edit_item' => _x( 'Edit Blog Entry', 'blog_entry' ), |
This file contains hidden or 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 | |
/////////////////////////////////////////////////////////////////////////////////// | |
// // | |
// This is using a sample local WordPress Install and is not production safe // | |
// It uses the REST and Basic Auth plugins // | |
// // | |
/////////////////////////////////////////////////////////////////////////////////// | |
This file contains hidden or 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
add_action( 'init', 'register_cpt_gym' ); | |
function register_cpt_gym() { | |
$labels = array( | |
'name' => _x( 'Gyms', 'gym' ), | |
'singular_name' => _x( 'Gym', 'gym' ), | |
'add_new' => _x( 'Add New', 'gym' ), | |
'add_new_item' => _x( 'Add New', 'gym' ), | |
'edit_item' => _x( 'Edit', 'gym' ), |
This file contains hidden or 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
This is a text edit | |
It spans a couple of lines | |
And has a break |