wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



comment_id_fields › WordPress Function

Od2.7.0
Przestarzałyn/a
comment_id_fields ( $post = null )
Parametry:
  • (int|WP_Post|null) $post Optional. The post the comment is being displayed for. Defaults to the current global post.
    Wymagane: Nie
    Domyślny: null
Zobacz:
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.2.0

Outputs hidden input HTML for replying to comments.

Adds two hidden inputs to the comment form to identify the comment_post_ID and comment_parent values for threaded comments. This tag must be within the <form> section of the comments.php template.


Źródło

function comment_id_fields( $post = null ) {
	echo get_comment_id_fields( $post );
}