is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','cleanblogg_search_filter'); //Time Hook function cleanblogg_ago_time() { global $post; $date = $post->post_date; $time = get_post_time('G', true, $post); $cbtime = time() - $time; if($cbtime < 60){ $cbtimestamp = __('Just now','cleanblogg'); }else{ $cbtimestamp = sprintf(__('%s ago','cleanblogg'), human_time_diff($time)); } return $cbtimestamp; } add_filter('the_time', 'cleanblogg_ago_time'); endif; //Comments function cleanblogg_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">
    comment_approved == '0') : ?>

    __('Reply', 'cleanblogg'), 'depth' => $depth, 'max_depth' => $args['max_depth'])), $comment->comment_ID); ?>