Changeset 11447 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 03/04/2017 06:26:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r11399 r11447 1846 1846 * @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'. 1847 1847 * } 1848 * @return int|boolThe ID of the activity on success. False on error.1848 * @return WP_Error|bool|int The ID of the activity on success. False on error. 1849 1849 */ 1850 1850 function bp_activity_add( $args = '' ) { … … 2027 2027 * @param WP_Post|null $post Post object. 2028 2028 * @param int $user_id ID of the post author. 2029 * @return int|boolThe ID of the activity on success. False on error.2029 * @return null|WP_Error|bool|int The ID of the activity on success. False on error. 2030 2030 */ 2031 2031 function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0 ) { … … 2162 2162 * 2163 2163 * @param WP_Post|null $post Post item. 2164 * @return bool True on success, false on failure.2164 * @return null|WP_Error|bool True on success, false on failure. 2165 2165 */ 2166 2166 function bp_activity_post_type_update( $post = null ) { … … 2284 2284 * @param bool $is_approved Whether the comment is approved or not. 2285 2285 * @param object|null $activity_post_object The post type tracking args object. 2286 * @return int|boolThe ID of the activity on success. False on error.2286 * @return null|WP_Error|bool|int The ID of the activity on success. False on error. 2287 2287 */ 2288 2288 function bp_activity_post_type_comment( $comment_id = 0, $is_approved = true, $activity_post_object = null ) { … … 2558 2558 * @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'. 2559 2559 * } 2560 * @return int|boolThe ID of the comment on success, otherwise false.2560 * @return WP_Error|bool|int The ID of the comment on success, otherwise false. 2561 2561 */ 2562 2562 function bp_activity_new_comment( $args = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.