Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_comment_id_fields [ WordPress Function ]

get_comment_id_fields ( $id = 0 )
Returns:
  • (string) Hidden input HTML for replying to comments
Defined at:



Retrieve hidden input HTML for replying to comments.

Source


<?php
function get_comment_id_fields$id ) {
    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ý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics