word_obj = get_option( 'author_wordcount' ); if ( ! $this->word_obj ) { $this->word_obj = array(); } } function load_plugin_textdomain() { load_plugin_textdomain( 'author_wordcount', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } public function add_menu() { $page = add_options_page( 'Author Wordcount Settings', 'Author Wordcount', 'manage_options', 'wp_author_wordcount', array( $this, 'plugin_settings_page' ) ); } public function widget( $args, $instance ) { if ( count( $this->word_obj ) > 0 ) { // todo don't bake this text, place in options echo( '