Changeset 47233 for trunk/src/wp-includes/post.php
- Timestamp:
- 02/10/2020 04:10:09 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r47219 r47233 1400 1400 * @type bool $can_export Whether to allow this post type to be exported. Default true. 1401 1401 * @type bool $delete_with_user Whether to delete posts of this type when deleting a user. If true, 1402 * posts of this type belonging to the user will be moved to trash1402 * posts of this type belonging to the user will be moved to Trash 1403 1403 * when then user is deleted. If false, posts of this type belonging 1404 1404 * to the user will *not* be trashed or deleted. If not set (the default), … … 1640 1640 * - `search_items` - Label for searching plural items. Default is 'Search Posts' / 'Search Pages'. 1641 1641 * - `not_found` - Label used when no items are found. Default is 'No posts found' / 'No pages found'. 1642 * - `not_found_in_trash` - Label used when no items are in the trash. Default is 'No posts found in Trash' /1642 * - `not_found_in_trash` - Label used when no items are in the Trash. Default is 'No posts found in Trash' / 1643 1643 * 'No pages found in Trash'. 1644 1644 * - `parent_item_colon` - Label used to prefix parents of hierarchical items. Not used on non-hierarchical … … 2927 2927 * associated with the post. 2928 2928 * 2929 * The post or page is moved to trash instead of permanently deleted unless2930 * trash is disabled, item is already in the trash, or $force_delete is true.2929 * The post or page is moved to Trash instead of permanently deleted unless 2930 * Trash is disabled, item is already in the Trash, or $force_delete is true. 2931 2931 * 2932 2932 * @since 1.0.0 … … 2937 2937 * 2938 2938 * @param int $postid Optional. Post ID. Default 0. 2939 * @param bool $force_delete Optional. Whether to bypass trash and force deletion.2939 * @param bool $force_delete Optional. Whether to bypass Trash and force deletion. 2940 2940 * Default false. 2941 2941 * @return WP_Post|false|null Post data on success, false or null on failure. … … 2967 2967 * @param bool|null $delete Whether to go forward with deletion. 2968 2968 * @param WP_Post $post Post object. 2969 * @param bool $force_delete Whether to bypass the trash.2969 * @param bool $force_delete Whether to bypass the Trash. 2970 2970 */ 2971 2971 $check = apply_filters( 'pre_delete_post', null, $post, $force_delete ); … … 3104 3104 * Move a post or page to the Trash 3105 3105 * 3106 * If trash is disabled, the post or page is permanently deleted.3106 * If Trash is disabled, the post or page is permanently deleted. 3107 3107 * 3108 3108 * @since 2.9.0 … … 3143 3143 3144 3144 /** 3145 * Fires before a post is sent to the trash.3145 * Fires before a post is sent to the Trash. 3146 3146 * 3147 3147 * @since 3.3.0 … … 3168 3168 3169 3169 /** 3170 * Fires after a post is sent to the trash.3170 * Fires after a post is sent to the Trash. 3171 3171 * 3172 3172 * @since 2.9.0 … … 3212 3212 3213 3213 /** 3214 * Fires before a post is restored from the trash.3214 * Fires before a post is restored from the Trash. 3215 3215 * 3216 3216 * @since 2.9.0 … … 3239 3239 3240 3240 /** 3241 * Fires after a post is restored from the trash.3241 * Fires after a post is restored from the Trash. 3242 3242 * 3243 3243 * @since 2.9.0 … … 3251 3251 3252 3252 /** 3253 * Moves comments for a post to the trash.3253 * Moves comments for a post to the Trash. 3254 3254 * 3255 3255 * @since 2.9.0 … … 3271 3271 3272 3272 /** 3273 * Fires before comments are sent to the trash.3273 * Fires before comments are sent to the Trash. 3274 3274 * 3275 3275 * @since 2.9.0 … … 3297 3297 3298 3298 /** 3299 * Fires after comments are sent to the trash.3299 * Fires after comments are sent to the Trash. 3300 3300 * 3301 3301 * @since 2.9.0 … … 3310 3310 3311 3311 /** 3312 * Restore comments for a post from the trash.3312 * Restore comments for a post from the Trash. 3313 3313 * 3314 3314 * @since 2.9.0 … … 3336 3336 3337 3337 /** 3338 * Fires before comments are restored for a post from the trash.3338 * Fires before comments are restored for a post from the Trash. 3339 3339 * 3340 3340 * @since 2.9.0 … … 3364 3364 3365 3365 /** 3366 * Fires after comments are restored for a post from the trash.3366 * Fires after comments are restored for a post from the Trash. 3367 3367 * 3368 3368 * @since 2.9.0 … … 5575 5575 * with the attachment (except the main post). 5576 5576 * 5577 * The attachment is moved to the trash instead of permanently deleted unless trash5578 * for media is disabled, item is already in the trash, or $force_delete is true.5577 * The attachment is moved to the Trash instead of permanently deleted unless Trash 5578 * for media is disabled, item is already in the Trash, or $force_delete is true. 5579 5579 * 5580 5580 * @since 2.0.0 … … 5583 5583 * 5584 5584 * @param int $post_id Attachment ID. 5585 * @param bool $force_delete Optional. Whether to bypass trash and force deletion.5585 * @param bool $force_delete Optional. Whether to bypass Trash and force deletion. 5586 5586 * Default false. 5587 5587 * @return WP_Post|false|null Post data on success, false or null on failure.
Note: See TracChangeset
for help on using the changeset viewer.