close_comments_for_post_types, array( post

close_comments_for_post_types, array( post

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.5.2

apply_filters('close_comments_for_post_types, array( post') is found 1 times:

  • /bp-blogs/bp-blogs-activity.php line 576
     
    		$post = get_post($post_id);
    
    		// This filter is documented in wp-includes/comment.php
    		$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );
    		if ( ! in_array( $post->post_type, $post_types ) )
    			return $open;
    		*/
    
    		if ( time() - strtotime( $activity->date_recorded ) > ( $days_old * DAY_IN_SECONDS ) ) {
    			return false;