Changeset 10551
- Timestamp:
- 02/07/2016 10:25:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r10550 r10551 804 804 bp_activity_post_type_publish( $post->ID, $post ); 805 805 } 806 807 // Allow plugins to eventually deal with other post statuses. 808 } else { 809 /** 810 * Fires when editing the post and the new status is not 'publish'. 811 * 812 * This is a variable filter that is dependent on the post type 813 * being untrashed. 814 * 815 * @since 2.5.0 816 * 817 * @param WP_Post $post Post data. 818 * @param string $new_status New status for the post. 819 * @param string $old_status Old status for the post. 820 */ 821 do_action( 'bp_activity_post_type_edit_' . $post->post_type, $post, $new_status, $old_status ); 806 822 } 807 823 … … 834 850 // Some form of pending status - only remove the activity entry. 835 851 bp_activity_post_type_unpublish( $post->ID, $post ); 852 853 // For any other cases, allow plugins to eventually deal with it. 854 } else { 855 /** 856 * Fires when the old and the new post status are not 'publish'. 857 * 858 * This is a variable filter that is dependent on the post type 859 * being untrashed. 860 * 861 * @since 2.5.0 862 * 863 * @param WP_Post $post Post data. 864 * @param string $new_status New status for the post. 865 * @param string $old_status Old status for the post. 866 */ 867 do_action( 'bp_activity_post_type_transition_status_' . $post->post_type, $post, $new_status, $old_status ); 836 868 } 837 869 }
Note: See TracChangeset
for help on using the changeset viewer.