Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_id_fields

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2036      /**
2037       * Filters the returned comment ID fields.
2038       *
2039       * @since 3.0.0
2040       *
2041       * @param string $comment_id_fields The HTML-formatted hidden ID field comment elements.
2042       * @param int    $post_id           The post ID.
2043       * @param int    $reply_to_id       The ID of the comment being replied to.
2044       */
2045      return apply_filters( 'comment_id_fields', $comment_id_fields, $post_id, $reply_to_id );
2046 }
2047
2048 /**
2049  * Outputs hidden input HTML for replying to comments.
2050  *
2051  * Adds two hidden inputs to the comment form to identify the `comment_post_ID`
2052  * and `comment_parent` values for threaded comments.
2053  *
2054  * This tag must be within the `<form>` section of the `comments.php` template.