| | 806 | |
| | 807 | // Allow plugins to eventually deal with other post stati. |
| | 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 ); |
| | 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 ); |