Changeset 2421130
- Timestamp:
- 11/18/2020 10:03:03 PM (5 years ago)
- Location:
- custom-post-type-maker/trunk
- Files:
-
- 4 edited
-
CHANGELOG.md (modified) (1 diff)
-
README.md (modified) (1 diff)
-
class-cptm.php (modified) (10 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-post-type-maker/trunk/CHANGELOG.md
r2404133 r2421130 1 1 # Changelog 2 3 ## 1.1.12 4 5 - Remove 'All' from taxonomy names as suggested by @gnowland 2 6 3 7 ## 1.1.11 -
custom-post-type-maker/trunk/README.md
r2404133 r2421130 28 28 29 29 ## Changelog 30 31 ## 1.1.12 32 33 - Remove 'All' from taxonomy names as suggested by @gnowland 30 34 31 35 ## 1.1.11 -
custom-post-type-maker/trunk/class-cptm.php
r2404133 r2421130 4 4 Plugin URI: https://github.com/Graffino/custom-post-type-maker-ui 5 5 Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way. 6 Version: 1.1.1 16 Version: 1.1.12 7 7 Author: Graffino 8 8 Author URI: http://www.graffino.com/ … … 32 32 * @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2 33 33 * @package Custom_Post_Types_Maker 34 * @version 1.1.1 134 * @version 1.1.12 35 35 */ 36 36 … … 62 62 $this->dir = plugins_url( '', __FILE__ ); 63 63 $this->path = plugin_dir_path( __FILE__ ); 64 $this->version = '1.1.1 1';64 $this->version = '1.1.12'; 65 65 66 66 // actions … … 110 110 ); 111 111 112 register_post_type( 'cptm', array( 113 'labels' => $labels, 114 'public' => false, 115 'show_ui' => true, 116 '_builtin' => false, 117 'capability_type' => 'page', 118 'hierarchical' => false, 119 'rewrite' => false, 120 'query_var' => 'cptm', 121 'supports' => array( 122 'title', 123 ), 124 'show_in_menu' => false, 125 )); 112 register_post_type( 113 'cptm', 114 array( 115 'labels' => $labels, 116 'public' => false, 117 'show_ui' => true, 118 '_builtin' => false, 119 'capability_type' => 'page', 120 'hierarchical' => false, 121 'rewrite' => false, 122 'query_var' => 'cptm', 123 'supports' => array( 124 'title', 125 ), 126 'show_in_menu' => false, 127 ) 128 ); 126 129 127 130 // Create cptm_tax post type … … 139 142 ); 140 143 141 register_post_type( 'cptm_tax', array( 142 'labels' => $labels, 143 'public' => false, 144 'show_ui' => true, 145 '_builtin' => false, 146 'capability_type' => 'page', 147 'hierarchical' => false, 148 'rewrite' => false, 149 'query_var' => 'cptm_tax', 150 'supports' => array( 151 'title', 152 ), 153 'show_in_menu' => false, 154 )); 144 register_post_type( 145 'cptm_tax', 146 array( 147 'labels' => $labels, 148 'public' => false, 149 'show_ui' => true, 150 '_builtin' => false, 151 'capability_type' => 'page', 152 'hierarchical' => false, 153 'rewrite' => false, 154 'query_var' => 'cptm_tax', 155 'supports' => array( 156 'title', 157 ), 158 'show_in_menu' => false, 159 ) 160 ); 155 161 156 162 // Add image size for the Custom Post Type icon … … 410 416 'search_items' => __( 'Search ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 411 417 'popular_items' => __( 'Popular ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 412 'all_items' => __( 'All ' .$cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),418 'all_items' => __( $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 413 419 'parent_item' => __( 'Parent ' . $cptm_taxonomy['cptm_tax_singular_name'], 'custom-post-type-maker' ), 414 420 'parent_item_colon' => __( 'Parent ' . $cptm_taxonomy['cptm_tax_singular_name'], 'custom-post-type-maker' . ':' ), … … 420 426 'add_or_remove_items' => __( 'Add or remove ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 421 427 'choose_from_most_used' => __( 'Choose from the most used ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 422 'menu_name' => __( 'All ' .$cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),428 'menu_name' => __( $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ), 423 429 ); 424 430 … … 1002 1008 <input type="checkbox" tabindex="12" name="cptm_tax_post_types[]" id="cptm_tax_post_types_page" value="page" <?php checked( $cptm_tax_post_types_page, 'page' ); ?> /> <label for="cptm_tax_post_types_page"><?php _e( 'Pages', 'custom-post-type-maker' ); ?></label><br /> 1003 1009 <?php 1004 $post_types = get_post_types( array( 1005 'public' => true, 1006 '_builtin' => false, 1007 )); 1010 $post_types = get_post_types( 1011 array( 1012 'public' => true, 1013 '_builtin' => false, 1014 ) 1015 ); 1008 1016 1009 1017 $i = 13; … … 1327 1335 1328 1336 // Get all public Custom Post Types 1329 $post_types = get_post_types( array( 1330 'public' => true, 1331 '_builtin' => false, 1332 ), 'objects' ); 1337 $post_types = get_post_types( 1338 array( 1339 'public' => true, 1340 '_builtin' => false, 1341 ), 1342 'objects' 1343 ); 1333 1344 // Get all Custom Post Types created by Custom Post Type Maker 1334 1345 $cptm_posts = get_posts( array( 'post_type' => 'cptm' ) ); … … 1431 1442 1432 1443 // Get all public custom Taxonomies 1433 $taxonomies = get_taxonomies( array( 1434 'public' => true, 1435 '_builtin' => false, 1436 ), 'objects' ); 1444 $taxonomies = get_taxonomies( 1445 array( 1446 'public' => true, 1447 '_builtin' => false, 1448 ), 1449 'objects' 1450 ); 1437 1451 // Get all custom Taxonomies created by Custom Post Type Maker 1438 1452 $cptm_tax_posts = get_posts( array( 'post_type' => 'cptm_tax' ) ); -
custom-post-type-maker/trunk/readme.txt
r2404133 r2421130 67 67 == Changelog == 68 68 69 = 1.1.12 = 70 71 - Remove 'All' from taxonomy names as suggested by @gnowland 72 69 73 = 1.1.11 = 70 74
Note: See TracChangeset
for help on using the changeset viewer.