Plugin Directory

Changeset 2621903


Ignore:
Timestamp:
10/29/2021 10:19:47 AM (4 years ago)
Author:
dannywpthemes
Message:

new version 1.0.2

Location:
aztheme-toolkit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aztheme-toolkit/trunk/aztheme-toolkit.php

    r2605943 r2621903  
    44 * Plugin URI:
    55 * Description: AZTheme Toolkit provides you necessary widgets for better and effective blogging.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: AZ-Theme
    88 * Author URI: https://az-theme.net/
     
    1616define( 'AZTHEME_TOOLKIT_DIR', __DIR__ );
    1717define( 'AZTHEME_TOOLKIT_URL', plugin_dir_url( __FILE__ ) );
     18
     19function 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
     67add_action( 'init', 'aztheme_toolkit_portfolio_init' );
    1868
    1969/**
  • aztheme-toolkit/trunk/readme.txt

    r2605940 r2621903  
    44Tags: toolkit, aztheme, categories, images, social, share
    55Requires at least: 5.0
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77Tested up to: 5.8
    88Requires PHP: 7.4
     
    3434== Changelog ==
    3535
     36= 1.0.2 =
     37* Released: October 29, 2021
     38- Add new post type: Portfolio
     39
    3640= 1.0.0 =
    3741* Initial release
Note: See TracChangeset for help on using the changeset viewer.