/** * Filters the archive title. Note that we need this additional filter because core WP does * things like add "Archives:" in front of the archive title. * * @since 1.0.0 * @access public * @param string $title * @return string */ function ccp_get_the_archive_title($title) { if (ccp_is_author()) { $title = ccp_get_single_author_title(); } else { if (ccp_is_project_archive()) { $title = post_type_archive_title('', false); } } return $title; }
/** * Print the author archive title. * * @since 1.0.0 * @access public * @return void */ function ccp_single_author_title() { echo ccp_get_single_author_title(); }