LLMS_Comments::exclude_order_comments_from_feed_join( string $join )

Exclude order comments from queries and RSS.


Parameters Parameters

$join

(string) (Required) SQL join clause.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.comments.php

	public static function exclude_order_comments_from_feed_join( $join ) {
		global $wpdb;
		if ( ! strstr( $join, $wpdb->posts ) ) {
			$join = " LEFT JOIN $wpdb->posts ON $wpdb->comments.comment_post_ID = $wpdb->posts.ID ";
		}
		return $join;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.