The second parameter for register_setting() is the database option name which you would use with get_option() just as you’ve done successfully with the title_char_count_settings option: register_setting( 'pluginPage', 'title_char_count_settings' ) and get_option( 'title_char_count_settings' );.
So I’m guessing that you either:
-
Made a typo in the
register_setting()call in yourebay_keyword_suggest_settings_init()function:// You used this: register_setting( 'pluginPage', 'pluginPage', array($this, 'ebay_keyword_suggest_settings')); // But perhaps you meant this? (Note the option name - the second parameter) register_setting( 'pluginPage', 'ebay_keyword_suggest_settings', array($this, 'ebay_keyword_suggest_settings')); -
Or you made a typo in your
get_option()call in yourenqueue_localize()function, where you should have usedget_option( 'pluginPage' ). But it’s unlikely that you would usepluginPageas the name for that option? 🙂