/**
 * Filters the Breadcrumb Trail plugin arguments.  We're basically just telling it to show the
 * `portfolio_category` taxonomy when viewing single portfolio projects.
 *
 * @since  1.0.0
 * @access public
 * @param  array  $args
 * @return array
 */
function ccp_breadcrumb_trail_args($args)
{
    $project_type = ccp_get_project_post_type();
    $project_base = ccp_get_project_rewrite_base();
    if (false === strpos($project_base, '%') && !isset($args['post_taxonomy'][$project_type])) {
        $args['post_taxonomy'][$project_type] = ccp_get_category_taxonomy();
    }
    return $args;
}
    /**
     * Displays the permalinks help tab.
     *
     * @since  1.0.0
     * @access public
     * @return void
     */
    public function help_tab_permalinks()
    {
        ?>

		<ul>
			<li><?php 
        _e('<strong>Portfolio Base:</strong> The primary URL for the portfolio section on your site. It lists your portfolio projects.', 'custom-content-portfolio');
        ?>
</li>
			<li>
				<?php 
        _e('<strong>Project Slug:</strong> The slug for single portfolio projects. You can use something custom, leave this field empty, or use one of the following tags:', 'custom-content-portfolio');
        ?>
				<ul>
					<li><?php 
        printf(esc_html__('%s - The project author name.', 'custom-content-portfolio'), '<code>%author%</code>');
        ?>
</li>
					<li><?php 
        printf(esc_html__('%s - The project category.', 'custom-content-portfolio'), '<code>%' . ccp_get_category_taxonomy() . '%</code>');
        ?>
</li>
					<li><?php 
        printf(esc_html__('%s - The project tag.', 'custom-content-portfolio'), '<code>%' . ccp_get_tag_taxonomy() . '%</code>');
        ?>
</li>
				</ul>
			</li>
			<li><?php 
        _e('<strong>Category Slug:</strong> The base slug used for portfolio category archives.', 'custom-content-portfolio');
        ?>
</li>
			<li><?php 
        _e('<strong>Tag Slug:</strong> The base slug used for portfolio tag archives.', 'custom-content-portfolio');
        ?>
</li>
			<li><?php 
        _e('<strong>Author Slug:</strong> The base slug used for portfolio author archives.', 'custom-content-portfolio');
        ?>
</li>
		</ul>
	<?php 
    }
/**
 * Filters the term updated messages in the admin.
 *
 * @since  1.0.0
 * @access public
 * @param  array  $messages
 * @return array
 */
function ccp_term_updated_messages($messages)
{
    $cat_taxonomy = ccp_get_category_taxonomy();
    $tag_taxonomy = ccp_get_tag_taxonomy();
    // Add the portfolio category messages.
    $messages[$cat_taxonomy] = array(0 => '', 1 => __('Category added.', 'custom-content-portfolio'), 2 => __('Category deleted.', 'custom-content-portfolio'), 3 => __('Category updated.', 'custom-content-portfolio'), 4 => __('Category not added.', 'custom-content-portfolio'), 5 => __('Category not updated.', 'custom-content-portfolio'), 6 => __('Categories deleted.', 'custom-content-portfolio'));
    // Add the portfolio tag messages.
    $messages[$tag_taxonomy] = array(0 => '', 1 => __('Tag added.', 'custom-content-portfolio'), 2 => __('Tag deleted.', 'custom-content-portfolio'), 3 => __('Tag updated.', 'custom-content-portfolio'), 4 => __('Tag not added.', 'custom-content-portfolio'), 5 => __('Tag not updated.', 'custom-content-portfolio'), 6 => __('Tags deleted.', 'custom-content-portfolio'));
    return $messages;
}
 /**
  * Renders a categories dropdown below the table nav.
  *
  * @since  1.0.0
  * @access public
  * @return void
  */
 public function categories_dropdown()
 {
     $this->terms_dropdown(ccp_get_category_taxonomy());
 }
/**
 * Conditional tag to check if viewing a portfolio category archive.
 *
 * @since  1.0.0
 * @access public
 * @param  mixed  $term
 * @return bool
 */
function ccp_is_category($term = '')
{
    return apply_filters('ccp_is_category', is_tax(ccp_get_category_taxonomy(), $term));
}