bp_activity_use_akismet, bp_is_akismet_active(

bp_activity_use_akismet, bp_is_akismet_active(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.5.2

apply_filters('bp_activity_use_akismet, bp_is_akismet_active(') is found 2 times:

  • /bp-activity/bp-activity-akismet.php line 27
    	 * @since 1.6.0
    	 *
    	 * @param bool $value Return value of bp_is_akismet_active boolean function.
    	 */
    	if ( ! apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) ) {
    		return;
    	}
    
    	// Instantiate Akismet for BuddyPress.
    	buddypress()->activity->akismet = new BP_Akismet();
    }
    
  • /bp-activity/classes/class-bp-activity-component.php line 73
    		if ( defined( 'AKISMET_VERSION' ) && class_exists( 'Akismet' ) ) {
    			$akismet_key = bp_get_option( 'wordpress_api_key' );
    
    			/** This filter is documented in bp-activity/bp-activity-akismet.php */
    			if ( ( ! empty( $akismet_key ) || defined( 'WPCOM_API_KEY' ) ) && apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) ) {
    				$includes[] = 'akismet';
    			}
    		}
    
    		// Embeds.
    		if ( bp_is_active( $this->id, 'embeds' ) ) {