“Function Reference/wp get current commenter”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
(: -{)
 
(1个修订)
(没有差异)

2009年3月14日 (六) 09:23的版本

Description

Get current commenter's name, email, and URL.

Expects cookies content to already be sanitized. User of this function might wish to recheck the returned array for validity.

Usage

%%%?php wp_get_current_commenter() ?%%%

Parameters

Return Values

tt(array)/tt 
Comment author, email, url respectively.

Examples

!-- Need creative examples. Feel free to link to external examples. --

Notes

  • Return array is mapped like this:

pre

   Array (
       ['comment_author']       = 'Harriet Smith,
       ['comment_author_email'] = 'hsmith@,example.com',
       ['comment_author_url']   = 'http://example.com/'
   )

/pre

Change Log

Since: 2.0.4

Source File

!-- Need links to current source code files -- ttwp_get_current_commenter()/tt is located in ttwp-includes/comment.php/tt.

Related

!--

   To Do:
   Need to find related functions.
   Need to create groups of functions and create templates to add them to a page quickly.
   Some functions may be related to many groups of functions.

--