Changeset 53792
- Timestamp:
- 07/29/2022 08:12:27 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r53455 r53792 32 32 * Optional. Arguments for generating the WXR export file for download. Default empty array. 33 33 * 34 * @type string $content 35 * 36 * 37 * 38 * 39 * 40 * 41 * @type string $author 42 * 43 * @type string $category 44 * 45 * 46 * @type string $start_date 47 * 48 * 49 * @type string $end_date 50 * 51 * @type string $status 52 * 53 * 54 * 34 * @type string $content Type of content to export. If set, only the post content of this post type 35 * will be exported. Accepts 'all', 'post', 'page', 'attachment', or a defined 36 * custom post. If an invalid custom post type is supplied, every post type for 37 * which `can_export` is enabled will be exported instead. If a valid custom post 38 * type is supplied but `can_export` is disabled, then 'posts' will be exported 39 * instead. When 'all' is supplied, only post types with `can_export` enabled will 40 * be exported. Default 'all'. 41 * @type string $author Author to export content for. Only used when `$content` is 'post', 'page', or 42 * 'attachment'. Accepts false (all) or a specific author ID. Default false (all). 43 * @type string $category Category (slug) to export content for. Used only when `$content` is 'post'. If 44 * set, only post content assigned to `$category` will be exported. Accepts false 45 * or a specific category slug. Default is false (all categories). 46 * @type string $start_date Start date to export content from. Expected date format is 'Y-m-d'. Used only 47 * when `$content` is 'post', 'page' or 'attachment'. Default false (since the 48 * beginning of time). 49 * @type string $end_date End date to export content to. Expected date format is 'Y-m-d'. Used only when 50 * `$content` is 'post', 'page' or 'attachment'. Default false (latest publish date). 51 * @type string $status Post status to export posts for. Used only when `$content` is 'post' or 'page'. 52 * Accepts false (all statuses except 'auto-draft'), or a specific status, i.e. 53 * 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', or 54 * 'trash'. Default false (all statuses except 'auto-draft'). 55 55 * } 56 56 */ … … 190 190 191 191 /** 192 * Wrap given string in XML CDATA tag.192 * Wraps given string in XML CDATA tag. 193 193 * 194 194 * @since 2.1.0 … … 208 208 209 209 /** 210 * Return the URL of the site210 * Returns the URL of the site. 211 211 * 212 212 * @since 2.5.0 … … 225 225 226 226 /** 227 * Output a cat_name XML tag from a given category object227 * Outputs a cat_name XML tag from a given category object. 228 228 * 229 229 * @since 2.1.0 230 230 * 231 * @param WP_Term $category Category Object 231 * @param WP_Term $category Category Object. 232 232 */ 233 233 function wxr_cat_name( $category ) { … … 240 240 241 241 /** 242 * Output a category_description XML tag from a given category object242 * Outputs a category_description XML tag from a given category object. 243 243 * 244 244 * @since 2.1.0 245 245 * 246 * @param WP_Term $category Category Object 246 * @param WP_Term $category Category Object. 247 247 */ 248 248 function wxr_category_description( $category ) { … … 255 255 256 256 /** 257 * Output a tag_name XML tag from a given tag object257 * Outputs a tag_name XML tag from a given tag object. 258 258 * 259 259 * @since 2.3.0 260 260 * 261 * @param WP_Term $tag Tag Object 261 * @param WP_Term $tag Tag Object. 262 262 */ 263 263 function wxr_tag_name( $tag ) { … … 270 270 271 271 /** 272 * Output a tag_description XML tag from a given tag object272 * Outputs a tag_description XML tag from a given tag object. 273 273 * 274 274 * @since 2.3.0 275 275 * 276 * @param WP_Term $tag Tag Object 276 * @param WP_Term $tag Tag Object. 277 277 */ 278 278 function wxr_tag_description( $tag ) { … … 285 285 286 286 /** 287 * Output a term_name XML tag from a given term object287 * Outputs a term_name XML tag from a given term object. 288 288 * 289 289 * @since 2.9.0 290 290 * 291 * @param WP_Term $term Term Object 291 * @param WP_Term $term Term Object. 292 292 */ 293 293 function wxr_term_name( $term ) { … … 300 300 301 301 /** 302 * Output a term_description XML tag from a given term object302 * Outputs a term_description XML tag from a given term object. 303 303 * 304 304 * @since 2.9.0 305 305 * 306 * @param WP_Term $term Term Object 306 * @param WP_Term $term Term Object. 307 307 */ 308 308 function wxr_term_description( $term ) { … … 315 315 316 316 /** 317 * Output term meta XML tags for a given term object.317 * Outputs term meta XML tags for a given term object. 318 318 * 319 319 * @since 4.6.0 … … 346 346 347 347 /** 348 * Output list of authors with posts348 * Outputs list of authors with posts. 349 349 * 350 350 * @since 3.1.0 … … 385 385 386 386 /** 387 * Output all navigation menu terms387 * Outputs all navigation menu terms. 388 388 * 389 389 * @since 3.1.0 … … 406 406 407 407 /** 408 * Output list of taxonomy terms, in XML tag format, associated with a post408 * Outputs list of taxonomy terms, in XML tag format, associated with a post. 409 409 * 410 410 * @since 2.3.0 … … 425 425 426 426 /** 427 * @param bool $return_me 428 * @param string $meta_key 427 * Determines whether to selectively skip post meta used for WXR exports. 428 * 429 * @since 3.3.0 430 * 431 * @param bool $return_me Whether to skip the current post meta. Default false. 432 * @param string $meta_key Meta key. 429 433 * @return bool 430 434 */
Note: See TracChangeset
for help on using the changeset viewer.