bbp_unspammed_topic

  • do_action( 'bbp_unspammed_topic', $topic_id )

    Source Reference:

    • Component: bbPress:: bbp-topic
      File: /bbp-includes/bbp-topic-functions.php :: Trac Source Line: 2594
      		// Delete pre-spam topic tag meta
      		delete_post_meta( $topic_id, '_bbp_spam_topic_tags' );
      	}
      
      	// Update the topic
      	$topic_id = wp_insert_post( $topic );
      
      	// Execute post unspam code
      	do_action( 'bbp_unspammed_topic', $topic_id );
      
      	// Return topic_id
      	return $topic_id;
      }
      
      /**
       * Sticks a topic to a forum or front
       *
       * @since bbPress (r2754)
       *
      

Hook: add_action: bbp_unspammed_topic instances (1)

  • add_action( 'bbp_unspammed_topic', 'bbp_update_topic_walker' )
    $function_to_add: bbp_update_topic_walker
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 210
      // 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' );
      add_action( 'bbp_unspammed_topic', 'bbp_update_topic_walker' );
      
      // Update reply branch
      add_action( 'bbp_trashed_reply',   'bbp_update_reply_walker' );
      add_action( 'bbp_untrashed_reply', 'bbp_update_reply_walker' );
      add_action( 'bbp_deleted_reply',   'bbp_update_reply_walker' );
      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'  );
      

Comments are closed.