get_comment_id_fields [ WordPress Function ]
get_comment_id_fields ( $id = 0 )
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: comment_id_fields, get_comment_id, get_comment_date, get_comment_time, get_comment_guid
Retrieve hidden input HTML for replying to comments.
Source
<?php
function get_comment_id_fields( $id = 0 ) {
if ( empty( $id ) )
$id = get_the_ID();
$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
$result = "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n";
$result .= "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n";
return apply_filters('comment_id_fields', $result, $id, $replytoid);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- get_comment_id_fields | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function get_comment_id_fields( $id = 0 ) { if ( empty( $id ) ) $id = get_the_ID(); $replytoid = isset($_GET['replytocom']) ?
hitchhackerguide.com - get_comment_id_fields() WordPress function reference, arguments ...
Retrieve hidden input HTML for replying to comments.
queryposts.com - #15015 (Customisable submit button for comment form ...
you have to include [args:id_submit] and [args:label_submit] if you want the comment_form() parameters to work. you have to use the get_comment_id_fields () ...
core.trac.wordpress.org - comment_id_fields (WordPress Function) - WPSeek.com
Similar Functions: get_comment_id_fields, comments_link_feed, comment_id, comment_date, comment_guid. Output hidden input HTML for replying to ...
wpseek.com