/* Get Post Revisions on Single Post Page */ function jnews_revisions() { $post_id = get_the_ID(); if( is_single($post_id) ) { $revision = wp_get_post_revisions( $post_id ); $total = count($revision); $output = "
{$total}
"; echo jnews_sanitize_output( $output ); } } add_action( 'jnews_render_before_meta_right', 'jnews_revisions' );