Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Override JNews Generate Rating
- global $pagenow;
- if ( 'post.php' === $pagenow || ! is_admin() || ( defined( 'DOING_AJAX' ) && 'DOING_AJAX' ) ) {
- remove_filter( 'jnews_review_generate_rating', 'jnews_review_generate_rating', null );
- add_filter( 'jnews_review_generate_rating', 'custom_review_generate', null, 3 );
- if ( ! function_exists( 'custom_review_generate' ) ) {
- function custom_review_generate( $review, $post_id, $class ) {
- // Return your post rating here
- return '<span> your review star </span>';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement