Insert shortcode with php in wordpress hooks.php

EDIT: This has been solved by my theme author. Added some magic to functions.php.

I have this code in hooks.php:
$views = apply_filters( ‘postviews’ , mars_get_count_viewed() );

I want to replace the view count with this shortcode:

<?php echo do_shortcode( '[jp_post_view]' ); ?>

How do I do it?

Thanks!

Sponsor our Newsletter | Privacy Policy | Terms of Service