You appear to be a bot. Output may be restricted
Description
Deletes all sitemap data of specific type
Usage
Jetpack_Sitemap_Librarian::delete_sitemap_type_data( $type );
Parameters
- $type
- ( String ) required – Type of sitemap.
Returns
void
Source
File name: jetpack/modules/sitemaps/sitemap-librarian.php
Lines:
1 to 13 of 13
protected function delete_sitemap_type_data( $type ) { $ids = get_posts( array( 'post_type' => $type, 'post_status' => 'draft', 'fields' => 'ids', ) ); foreach ( $ids as $id ) { wp_trash_post( $id ); } }