Some strings from a .mo file do not load
Looking at this again, I finally saw it: $clgs_settings_descriptions is defined globally, during plugin load. The textdomain is loaded at action hook plugins_loaded, which is obviously later…
Looking at this again, I finally saw it: $clgs_settings_descriptions is defined globally, during plugin load. The textdomain is loaded at action hook plugins_loaded, which is obviously later…
There are probably various ways to do this – personally I use the following for loading some small scripts only on the “new” and “edit” pages (datepicker etc.): function load_my_admin_scripts( $hook ) { if (( $hook == ‘post.php’ || $hook == ‘post-new.php’ )) { wp_enqueue_script( ‘my-datepicker’, // name / handle of the script SCRIPTS . ‘script.js’, … Read more
Off the top of my head I can’t think of any instance where you would want the WordPress admin to be the main entry point for your website, that there isn’t a more suitable software to use. Do you have a specific application or use in mind? In general I would say say, yes it … Read more
register_activation_hook() only attaches a function to run on activation of your plugin, not on updating. See the docs for full details, particularly this part: 3.1 : This hook is now fired only when the user activates the plugin and not when an automatic plugin update occurs (#14915). Of course, you could force your hook to … Read more
I don’t think the name (typeahead bundle) may contain spaces.
$callback = NULL means there is the $callback variable but it has no the value. In this case, unless you add any setting fields by add_setting_field() and register those settings by register_setting(), you’ll get the Settings subheader on the Settings page without any content in this section. Here is an old tutorial which can be … Read more
While what you used appears to work for now, I couldn’t guarantee it isn’t going to cause other issues now or in the future because – as you already know – tricking is_admin_bar_showing() isn’t what the check of the XMLRPC_REQUEST constant was designed for. Therefore even if it doesn’t cause issues now I don’t think … Read more
You could try a plugin like Visual Editor Custom Buttons. Or you may want to do something custom. There’s a solid example at http://code.tutsplus.com/tutorials/guide-to-creating-your-own-wordpress-editor-buttons–wp-30182.
The parameters are fairly wrong here: add_options_page( ‘Theme Options’, ‘Theme Options’, ‘administrator’, __FILE__, array(‘KD_Options’), ‘display_options_page’ ); Because you are within a Class, the callback needs to be array( $this, ‘display_options_page’ ) and not just a function name. You use that array format for WP callbacks within classes so that they are correctly referenced. However, add_options_page … Read more
Those are Geo IP databases which tie IP addresses to countries. They probably came from some e-commerce plugin, or a cookie-law plugin, or some other country-specific tool.