Changeset 12514
- Timestamp:
- 03/29/2023 07:50:35 PM (3 years ago)
- 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 140 140 add_action( 'admin_init', array( $this, 'add_menu_order' ) ); 141 141 add_action( 'after_setup_theme', array( $this, 'ensure_post_thumbnails_support' ) ); 142 add_filter( 'jetpack_sitemap_post_types', array( $this, 'add_to_sitemaps' ) );143 142 } // End __construct() 144 143 … … 795 794 public function add_menu_order() { 796 795 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 809 797 810 798 } // End Class
Note: See TracChangeset
for help on using the changeset viewer.