get_comment_to_edit [ WordPress Function ]
get_comment_to_edit ( $id )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: get_comment_text, get_comment_time, get_comment_date, get_comment_author_ip, get_comment_type
{@internal Missing Short Description}}
Source
<?php
function get_comment_to_edit( $id ) {
if ( !$comment = get_comment($id) )
return false;
$comment->comment_ID = (int) $comment->comment_ID;
$comment->comment_post_ID = (int) $comment->comment_post_ID;
$comment->comment_content = format_to_edit( $comment->comment_content );
$comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content);
$comment->comment_author = format_to_edit( $comment->comment_author );
$comment->comment_author_email = format_to_edit( $comment->comment_author_email );
$comment->comment_author_url = format_to_edit( $comment->comment_author_url );
$comment->comment_author_url = esc_url($comment->comment_author_url);
return $comment;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_comment_to_edit | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function get_comment_to_edit( $id ) { if ( !$comment = get_comment($id) ) return false; $comment->comment_ID = (int) ...
hitchhackerguide.com - why isn't user_can_richedit() passed to format_to_edit in - WordPress
I see that in get_post_to_edit, when $post->post_content is is filtered through the format_to_edit function, user_can_richedit() is passed as the second parameter ...
wordpress.org - WordPress › Support » [Plugin: SI CAPTCHA Anti-Spam] Where is ...
$comment = get_comment_to_edit( $comment_id ); include('edit-form-comment. php'); break; case 'delete' : case 'approve' : case 'trash' : case 'spam' ...
wordpress.org - PHPXRef 0.7 : WordPress : /wp-admin/includes/comment.php source
False on failure. 77 */ 78 function get_comment_to_edit( $id ) { 79 if ( !$comment = get_comment($id) ) 80 return false; 81 82 $comment->comment_ID = (int) ...
phpxref.ftwr.co.uk