[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-admin/includes/ -> comment.php (summary)

WordPress Comment Administration API.

File Size: 171 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  comment_exists()
  edit_comment()
  get_comment_to_edit()
  get_pending_comments_num()
  floated_admin_avatar()
  enqueue_comment_hotkeys_js()

Functions
Functions that are not part of a class:

comment_exists($comment_author, $comment_date)   X-Ref
Determine if a comment exists based on author and date.

param: string $comment_author Author of the comment
param: string $comment_date Date of the comment
return: mixed Comment post ID on success.

edit_comment()   X-Ref
Update a comment with values provided in $_POST.


get_comment_to_edit( $id )   X-Ref
Returns a comment object based on comment ID.

param: int $id ID of comment to retrieve.
return: bool|object Comment if found. False on failure.

get_pending_comments_num( $post_id )   X-Ref
Get the number of pending comments on a post or posts

param: int|array $post_id Either a single Post ID or an array of Post IDs
return: int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs

floated_admin_avatar( $name )   X-Ref
Add avatars to relevant places in admin, or try to.

param: string $name User name.
return: string Avatar with Admin name.

enqueue_comment_hotkeys_js()   X-Ref
No description



Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu