Exemple #1
0
/**
 * Prints the theme archive URL.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function thds_theme_archive_url()
{
    echo esc_url(thds_get_theme_archive_url());
}
Exemple #2
0
/**
 * Redirects author requests for users who have not published any themes to the
 * theme archive page.
 *
 * @since  1.0.0
 * @access public
 * @global object  $wp_the_query
 * @return void
 */
function thds_template_redirect()
{
    global $wp_the_query;
    if (thds_is_author() && 0 >= $wp_the_query->post_count) {
        wp_redirect(esc_url_raw(thds_get_theme_archive_url()));
        exit;
    }
}