setTimestamp( $first_visit_timestamp ); $display_again_datetime = $first_visit_datetime->modify( $display_again_after ); if ( $current_datetime > $display_again_datetime ) { return true; } } $visit_count = $cookie_array[ $condition_id ]['visit_count']; if ( (int) $visit_count >= (int) $number_of_views ) { $is_displayable = false; } else { $is_displayable = true; } // Evaluation output. return $is_displayable; } }