bbp_edit_reply

  • do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply->post_author , true /* Is edit */ )

    Source Reference:

    • Component: bbPress:: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 519
      				'reason'      => $reply_edit_reason
      			) );
      		}
      
      		/** No Errors *********************************************************/
      
      		if ( !empty( $reply_id ) && !is_wp_error( $reply_id ) ) {
      
      			// Update counts, etc...
      			do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply->post_author , true /* Is edit */ );
      
      			/** Additional Actions (After Save) *******************************/
      
      			do_action( 'bbp_edit_reply_post_extras', $reply_id );
      
      			/** Redirect ******************************************************/
      
      			// Redirect to
      			$redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
      

Hook: add_action: bbp_edit_reply instances (1)

  • add_action( 'bbp_edit_reply',    'bbp_update_reply',       10, 6 )
    $function_to_add: bbp_update_reply
    $priority: 10
    $accepted_args: 6

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 152
      add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
      add_action( 'bbp_deleted_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_spammed_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_unspammed_forum', 'bbp_update_forum_walker' );
      
      // New/Edit Reply
      add_action( 'template_redirect', 'bbp_new_reply_handler'         );
      add_action( 'template_redirect', 'bbp_edit_reply_handler', 1     );
      add_action( 'bbp_new_reply',     'bbp_update_reply',       10, 6 );
      add_action( 'bbp_edit_reply',    'bbp_update_reply',       10, 6 );
      
      // Before Delete/Trash/Untrash Reply
      add_action( 'trash_post',   'bbp_trash_reply'   );
      add_action( 'untrash_post', 'bbp_untrash_reply' );
      add_action( 'delete_post',  'bbp_delete_reply'  );
      
      // After Deleted/Trashed/Untrashed Reply
      add_action( 'trashed_post',   'bbp_trashed_reply'   );
      add_action( 'untrashed_post', 'bbp_untrashed_reply' );
      add_action( 'deleted_post',   'bbp_deleted_reply'   );
      

Comments are closed.