Changeset 33931
- Timestamp:
- 09/06/2015 12:11:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-functions.php
r33922 r33931 3609 3609 * @since 2.3.0 3610 3610 * 3611 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.3612 * Default 0.3613 * @param string $tags Optional. The tags to set for the post,separated by commas. Default empty.3614 * @return array|false|WP_Error Will return false if $post_id is not an integer or is 0.3611 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. 3612 * @param string|array $tags Optional. An array of tags to set for the post, or a string of tags 3613 * separated by commas. Default empty. 3614 * @return array|false|WP_Error Array of affected term IDs. WP_Error or false on failure. 3615 3615 */ 3616 3616 function wp_add_post_tags( $post_id = 0, $tags = '' ) { … … 3625 3625 * @see wp_set_object_terms() 3626 3626 * 3627 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.3628 * @param string $tags Optional. The tags to set for the post, separated by commas.3629 * Default empty.3630 * @param bool $append Optional. If true, don't delete existing tags, just add on. If false,3631 * replace the tags with the new tags. Default false.3627 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. 3628 * @param string|array $tags Optional. An array of tags to set for the post, or a string of tags 3629 * separated by commas. Default empty. 3630 * @param bool $append Optional. If true, don't delete existing tags, just add on. If false, 3631 * replace the tags with the new tags. Default false. 3632 3632 * @return array|false|WP_Error Array of affected term IDs. WP_Error or false on failure. 3633 3633 */ … … 3643 3643 * @see wp_set_object_terms() 3644 3644 * 3645 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. 3646 * @param string $tags Optional. The tags to set for the post, separated by commas. Default empty. 3647 * @param string $taxonomy Optional. Taxonomy name. Default 'post_tag'. 3648 * @param bool $append Optional. If true, don't delete existing tags, just add on. If false, 3649 * replace the tags with the new tags. Default false. 3645 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. 3646 * @param string|array $tags Optional. An array of terms to set for the post, or a string of terms 3647 * separated by commas. Default empty. 3648 * @param string $taxonomy Optional. Taxonomy name. Default 'post_tag'. 3649 * @param bool $append Optional. If true, don't delete existing terms, just add on. If false, 3650 * replace the terms with the new terms. Default false. 3650 3651 * @return array|false|WP_Error Array of affected term IDs. WP_Error or false on failure. 3651 3652 */
Note: See TracChangeset
for help on using the changeset viewer.