Skip to content

friends_get_comments

Alex Kirk edited this page May 11, 2024 · 4 revisions

Auto-generated Example

add_filter(
    'friends_get_comments',
    function (
        array $array,
        $post_id
    ) {
        // Your code here
        return $array;
    },
    10,
    2
);

Parameters

  • array $array
  • $post_id

Files

apply_filters(
			'friends_get_comments',
			get_comments(
				array(
					'post_id' => $post_id,
					'status'  => 'approve',
					'order'   => 'ASC',
				)
			),
			$post_id
		)

Hooks

Clone this wiki locally