Customizing a plugin function using a hook

Maybe try the following: function set_robotsmeta_default( $post_object ) { if (!isset($post_object->robotsmeta) || $post_object->robotsmeta == “”) { $post_object->robotsmeta = “noindex,nofollow”; } return $post_object; } add_action( ‘the_post’, ‘set_robotsmeta_default’ ); EDIT: Since the above didn’t work, the code below may work, by editing the global $post object before the plugin add_meta_boxes is called. I just don’t know if … Read more

How to add a meaningful link in plugin admin panel?

Short: You can’t. Php functions can’t be run “straight” from a button because they run server side. You need either to set a $_POST or $_GET (so you can run the function on the page load) or use ajax/javascript. You can find multiple answers to this question on the site already. For example this. edit: … Read more

Locale changed but plugin still showing default language

Thanks @toscho — The problem plugin in particular is wp-pagenavi. The backend strings are being translated, however; the frontend remains in default en_US locale. I found this: https://wordpress.org/support/topic/translation-91 To be more specific, the text field values on plugin options page do not get translated so my assumption is that translations are malformed somewhere in the … Read more