Changeset 2621903
- Timestamp:
- 10/29/2021 10:19:47 AM (4 years ago)
- Location:
- aztheme-toolkit/trunk
- Files:
-
- 2 edited
-
aztheme-toolkit.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aztheme-toolkit/trunk/aztheme-toolkit.php
r2605943 r2621903 4 4 * Plugin URI: 5 5 * Description: AZTheme Toolkit provides you necessary widgets for better and effective blogging. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: AZ-Theme 8 8 * Author URI: https://az-theme.net/ … … 16 16 define( 'AZTHEME_TOOLKIT_DIR', __DIR__ ); 17 17 define( 'AZTHEME_TOOLKIT_URL', plugin_dir_url( __FILE__ ) ); 18 19 function aztheme_toolkit_portfolio_init() { 20 $labels = array( 21 'name' => __( 'Portfolio Items', 'aztheme-toolkit' ), 22 'singular_name' => __( 'Portfolio', 'aztheme-toolkit' ), 23 'menu_name' => __( 'Portfolio', 'aztheme-toolkit' ), 24 'name_admin_bar' => __( 'Portfolio', 'aztheme-toolkit' ), 25 'add_new' => __( 'Add New', 'aztheme-toolkit' ), 26 'add_new_item' => __( 'Add New Project', 'aztheme-toolkit' ), 27 'new_item' => __( 'New Item', 'aztheme-toolkit' ), 28 'edit_item' => __( 'Edit Item', 'aztheme-toolkit' ), 29 'view_item' => __( 'View Item', 'aztheme-toolkit' ), 30 'all_items' => __( 'All Items', 'aztheme-toolkit' ), 31 'search_items' => __( 'Search Items', 'aztheme-toolkit' ) 32 ); 33 34 $args = array( 35 'labels' => $labels, 36 'description' => '', 37 'public' => true, 38 'publicly_queryable' => true, 39 'show_ui' => true, 40 'show_in_menu' => true, 41 'query_var' => true, 42 'rewrite' => array( 'slug' => 'portfolio' ), 43 'capability_type' => 'post', 44 'menu_icon' => 'dashicons-awards', 45 'has_archive' => true, 46 'hierarchical' => false, 47 'menu_position' => null, 48 'supports' => array( 'title', 'thumbnail', 'editor' ) 49 ); 50 51 register_post_type( 'portfolio', $args ); 52 53 register_taxonomy( 'portfolio_category', 'portfolio', array( 54 'hierarchical' => true, 55 'query_var' => 'portfolio_category', 56 'rewrite' => false, 57 'public' => true, 58 'show_ui' => true, 59 'show_admin_column' => true, 60 'labels' => array( 61 'name' => 'Portfolio Categories', 62 'singular_name' => 'Portfolio Category' 63 ) 64 )); 65 } 66 67 add_action( 'init', 'aztheme_toolkit_portfolio_init' ); 18 68 19 69 /** -
aztheme-toolkit/trunk/readme.txt
r2605940 r2621903 4 4 Tags: toolkit, aztheme, categories, images, social, share 5 5 Requires at least: 5.0 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Tested up to: 5.8 8 8 Requires PHP: 7.4 … … 34 34 == Changelog == 35 35 36 = 1.0.2 = 37 * Released: October 29, 2021 38 - Add new post type: Portfolio 39 36 40 = 1.0.0 = 37 41 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.