Making WordPress.org

Changeset 12514


Ignore:
Timestamp:
03/29/2023 07:50:35 PM (3 years ago)
Author:
ryelle
Message:

Support HelpHub: Sync with Git WordPress/wporg-documentation-2022@32813ca

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php

    r12455 r12514  
    140140        add_action( 'admin_init', array( $this, 'add_menu_order' ) );
    141141        add_action( 'after_setup_theme', array( $this, 'ensure_post_thumbnails_support' ) );
    142         add_filter( 'jetpack_sitemap_post_types', array( $this, 'add_to_sitemaps' ) );
    143142    } // End __construct()
    144143
     
    795794    public function add_menu_order() {
    796795        add_post_type_support( 'post', 'page-attributes' );
    797     } // End add_menu_order()
    798 
    799     /**
    800      * Add the post_type to Jetpack Sitemaps.
    801      *
    802      * @access public
    803      * @since  1.0.0
    804      */
    805     public function add_to_sitemaps( $post_types ) {
    806         $post_types[] = $this->post_type;
    807         return $post_types;
    808     } // End add_to_sitemaps()
     796    } // End ens
    809797
    810798} // End Class
Note: See TracChangeset for help on using the changeset viewer.