separate_comments

Advertisement

Summery Summery

Separates an array of comments into an array keyed by comment_type.

Syntax Syntax

separate_comments( WP_Comment[] $comments )

Parameters Parameters

$comments

(Required) Array of comments

Return Return

(WP_Comment[]) Array of comments keyed by comment_type.

Source Source

File: wp-includes/comment.php

				 * @param string $comment_flood_message Comment flood error message.
				 */
				$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );

				if ( wp_doing_ajax() ) {
					die( $comment_flood_message );
				}

				wp_die( $comment_flood_message, 429 );
			}
		}
	}

	return false;
}

/**
 * Separates an array of comments into an array keyed by comment_type.
 *
 * @since 2.7.0
 *

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply