Correct way check nonce (security) using old Options API
Correct way check nonce (security) using old Options API
Correct way check nonce (security) using old Options API
Remove obsolete plugins artifacts from database tables
Is there a reliable way to keep track of how long a WordPress theme has been active?
I’ve been using WPSettings recently. I coded it for me to take care of admin screens and options in my projects as I did not like any of the options above.
Custom widget select options needs to stay selected after save
Like @Bainternet said, it is the same thing. Taking the code from the question you linked to, you can do it like this: function filter_attachment_fields_to_edit( $form_fields, $post ) { $foo = (bool)get_post_meta( $post->ID, ‘foo’, true ); $bar = (bool)get_post_meta( $post->ID, ‘bar’, true ); $form_fields[‘foo’] = array( ‘label’ => ‘Is Foo’, ‘input’ => ‘html’, ‘html’ => … Read more
I’m guessing that you are using language tags around ‘polish textdeutschland text’ i.e. <!–:pl–>polish text<!–:–><!–:de–>deutschland text<!–:–> but that they got ignored when you posted your answer. I’m pretty sure what you need to be doing is using the __() (which returns the translation for use in php code) and _e() (echo’s direct to screen) wordpress … Read more
grrr.really annoying, 2hrs and then i found it myself $args = array( ‘echo’ => 1, ‘selected’ => $home_galleryselect, ‘name’ => ‘theme_option[home_galleryselect]’); wp_dropdown_pages($args);
It works on a standard profile page (your profile / Profile) without other plugins installed. Other plugins may affect the overall result. I think code can be improved, if some one knows how please give it a go. function better_profile_page($buffer) { global $pagenow; if ($pagenow == ‘profile.php’ || $pagenow == ‘users.php’ || $pagenow == ‘user-edit.php’) … Read more
Answering another Question, I pointed to this tutorial: Creating a Simple Backup/Restore Settings Feature Lee Pham on Jun 22nd 2012 In this tutorial, I’m going to show you how to create a simple backup/restore feature for your WordPress blog. With this feature, you can backup all options to another place, that you can restore them … Read more