Making WordPress.org


Ignore:
Timestamp:
08/09/2018 08:58:06 PM (6 years ago)
Author:
obenland
Message:

Plugins/Themes: Add CPT to Jetpack sitemaps

See #3540.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r6554 r7600  
    207207
    208208/**
     209 * The array of post types to be included in the sitemap.
     210 *
     211 * @param array $post_types List of included post types.
     212 * @return array
     213 */
     214function wporg_themes_sitemap_post_types( $post_types ) {
     215    $post_types[] = 'repopackage';
     216
     217    return $post_types;
     218}
     219add_filter( 'jetpack_sitemap_post_types', 'wporg_themes_sitemap_post_types' );
     220
     221/**
    209222 * Returns the specified meta value for a version of a theme.
    210223 *
Note: See TracChangeset for help on using the changeset viewer.