Я так понял этот код нужно положить сюда /wp-content/plugins/wp-recall/add-on/rating-system/index.php
add_filter('comment_text','add_rating_user_data');
function add_rating_user_data($text){
global $comment;
$rating = '<span class="newclass">' . rcl_rating_block(array('value'=>$comment->rating_author)) . '</span>';
$text = $rating.$text;
return $text;
}
Подскажите куда именно.
if(!is_admin()):
add_filter('comment_text', 'rcl_comment_content_rating',20);
endif;
function rcl_comment_content_rating($content){
global $comment;
if(!$comment) return $content;
$content .= rcl_get_html_post_rating($comment->comment_ID,'comment');
return $content;
}
function rcl_encode_data_rating($status,$args){
$args['rating_status'] = $status;
foreach($args as $k=>$v){
$str[] = $k.':'.$v;
}
return base64_encode(implode(',',$str));
//return implode(',',$str);
}
function rcl_decode_data_rating($data){
global $user_ID;
$data = explode(',',base64_decode($data));
//$data = explode(',',$data);