• Hello,

    Thank you for this great plugin. We are using it to help non-native English speakers to improve their writing and understanding.

    We would like to display the Live Stats on the Front End at the bottom of the ‘the_content’ area in our single.php. Unfortunately we are not the best at php.

    I see here that there is a hook already that displays the Live Stats info in the ‘admin_footer’. Can we us this to display it at the bottom of our post on the front end?

    /* # Hooks
    -------------------------------------------------------------- */
    # Hook live stats. Load only when editing a post.
    if ( isset( $_GET[ 'action' ] ) ) {
    	if ( $_GET[ 'action' ] == 'edit' || !strpos( $_SERVER[ 'SCRIPT_FILENAME' ], 'post-new.php' ) === false ) {
    		add_action( 'admin_footer', array( 'Word_Stats_Core' , 'live_stats' ) );
    	}
    }

    We look forward to your reply.

    Thanks

    Netivity

    https://www.ads-software.com/plugins/word-stats/

  • The topic ‘How to display Live Stats Hook on Front End single.php post’ is closed to new replies.