bbp_new_reply

  • do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author )

    Source Reference:

    • Component: bbPress:: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 287
      			/** Spam Check ****************************************************/
      
      			// If reply or topic are spam, officially spam this reply
      			if ( bbp_is_topic_spam( $topic_id ) || ( $reply_data['post_status'] == bbp_get_spam_status_id() ) )
      				add_post_meta( $reply_id, '_bbp_spam_meta_status', bbp_get_public_status_id() );
      
      			/** Update counts, etc... *****************************************/
      
      			do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );
      
      			/** Redirect ******************************************************/
      
      			// Redirect to
      			$redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
      
      			// Get the reply URL
      			$reply_url = bbp_get_reply_url( $reply_id, $redirect_to );
      
      			// Allow to be filtered
      

Hook: add_action: bbp_new_reply instances (4)

  • add_action( 'bbp_new_reply',                array( $this, 'reply_create'              ), 10, 5 )
    $function_to_add: array( $this
    $priority: 0
    $accepted_args: 10

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-extend-buddypress.php :: Trac Source Line: 142
      		/** Activity **********************************************************/
      
      		// Register the activity stream actions
      		add_action( 'bp_register_activity_actions', array( $this, 'register_activity_actions' )        );
      
      		// Hook into topic creation
      		add_action( 'bbp_new_topic',                array( $this, 'topic_create'              ), 10, 4 );
      
      		// Hook into reply creation
      		add_action( 'bbp_new_reply',                array( $this, 'reply_create'              ), 10, 5 );
      	}
      
      	/**
      	 * Setup the filters
      	 *
      	 * @since bbPress (r3395)
      	 * @access private
      	 *
      	 * @uses add_filter() To add various filters
      	 * @uses add_action() To add various actions
      

Hook: add_action: bbp_new_reply instances (4)

  • add_action( 'bbp_new_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: 151
      add_action( 'bbp_trashed_forum',   'bbp_update_forum_walker' );
      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' );
      

Hook: add_action: bbp_new_reply instances (4)

  • add_action( 'bbp_new_reply',     'bbp_notify_subscribers',                 1, 5 )
    $function_to_add: bbp_notify_subscribers
    $priority: 1
    $accepted_args: 5

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 199
      // Favorites
      add_action( 'template_redirect', 'bbp_favorites_handler',              1 );
      add_action( 'bbp_trash_topic',   'bbp_remove_topic_from_all_favorites'   );
      add_action( 'bbp_delete_topic',  'bbp_remove_topic_from_all_favorites'   );
      
      // Subscriptions
      add_action( 'template_redirect', 'bbp_subscriptions_handler',              1    );
      add_action( 'bbp_trash_topic',   'bbp_remove_topic_from_all_subscriptions'      );
      add_action( 'bbp_delete_topic',  'bbp_remove_topic_from_all_subscriptions'      );
      add_action( 'bbp_new_reply',     'bbp_notify_subscribers',                 1, 5 );
      
      // Sticky
      add_action( 'bbp_trash_topic',  'bbp_unstick_topic' );
      add_action( 'bbp_delete_topic', 'bbp_unstick_topic' );
      
      // Update topic branch
      add_action( 'bbp_trashed_topic',   'bbp_update_topic_walker' );
      add_action( 'bbp_untrashed_topic', 'bbp_update_topic_walker' );
      add_action( 'bbp_deleted_topic',   'bbp_update_topic_walker' );
      add_action( 'bbp_spammed_topic',   'bbp_update_topic_walker' );
      

Hook: add_action: bbp_new_reply instances (4)

  • add_action( 'bbp_new_reply', 'bbp_global_access_auto_role' )
    $function_to_add: bbp_global_access_auto_role
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 225
      add_action( 'bbp_spammed_reply',   'bbp_update_reply_walker' );
      add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
      
      // User status
      add_action( 'make_ham_user',  'bbp_make_ham_user'  );
      add_action( 'make_spam_user', 'bbp_make_spam_user' );
      
      // User role
      add_action( 'bbp_new_topic', 'bbp_global_access_auto_role' );
      add_action( 'bbp_new_reply', 'bbp_global_access_auto_role' );
      
      // Flush rewrite rules
      add_action( 'bbp_activation',   'flush_rewrite_rules' );
      add_action( 'bbp_deactivation', 'flush_rewrite_rules' );
      
      /**
       * When a new site is created in a multisite installation, run the activation
       * routine on that site
       *
       * @since bbPress (r3283)
      

Comments are closed.