Wp die causing 500 Internal Server Error?

I have function to upload images inside my settings API ,it uploads images as expected but the problem comes when user chooses to upload non-image file to stop users from uploading other files (non-image files) i am using wp_die(‘No image found’); an that leads to dreaded 500 Internal Server Error message displayed. Strange thing is … Read more

Tab from Settings API resetting all options with INSERT INTO [closed]

Closed. This question is off-topic. It is not currently accepting answers. Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question? Closed 8 years ago. Improve this question I have an Options menu created … Read more

Settings API store serialized data in the database (The Right Way)

Im trying to learn Settings API and I’d appreciate if someone could clarify this for me. I want to store serialized data in the database. Im using a class to do all the work for me. Heres what I have: public function admin_init() { register_setting( ‘wp_plugin_template-group’, ‘my_settings’, array(&$this,’validate’)); // add your settings section add_settings_section( ‘wp_plugin_template-section’, … Read more

Tabbed navigation for plugin options using same row in database for all?

I’m trying to use WordPress’ native tabbed navigation on my plugin’s options page, but I’m having trouble. I’ve managed to get the options to display, though it displays every plugin option on every tab. I also get the error message ERROR: options page not found whenever I try to save settings. I think I’ve traced … Read more

Correct way check nonce (security) using old Options API

I am developing plugin for WordPress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn’t provide the way to handle options manually. I have quite complex options structure, it consists dynamic number of items/object each object has multiple fields, and I need to save array of … Read more