Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_get_current_commenter

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
1666       *
1667       * @param array $comment_author_data {
1668       *     An array of current commenter variables.
1669       *
1670       *     @type string $comment_author       The name of the author of the comment. Default empty.
1671       *     @type string $comment_author_email The email address of the `$comment_author`. Default empty.
1672       *     @type string $comment_author_url   The URL address of the `$comment_author`. Default empty.
1673       * }
1674       */
1675      return apply_filters( 'wp_get_current_commenter', compact('comment_author', 'comment_author_email', 'comment_author_url') );
1676 }
1677
1678 /**
1679  * Inserts a comment into the database.
1680  *
1681  * @since 2.0.0
1682  * @since 4.4.0 Introduced `$comment_meta` argument.
1683  *
1684  * @global wpdb $wpdb WordPress database abstraction object.