Is there any way to reset the certain section via direct link?
Hello,
I am adding a custom PHP field in theme option which will then be included in theme function
is there a way I can Reset That PHP field Section directly via link since if there's a PHP error the whole site including the admin area will be taken down. so I wanted to know if there's a link I can access that will reset the field value directly if the wordpress admin area is down.
Im not sure if this can be done though I am just curious about the reset section button if it can possibly reset field value using direct link?
anyway, the custom php field value I created will automatically create custom.php file inside the theme directory which will be then included on in theme functions. so If I get a PHP error from the custom PHP field value, the only fix is to uncomment the include custom.php line from theme functions, access the theme-options and fix the php errors, then include it again in theme functions, as I can not directly edit custom.php because its auto generated added on after_setup_theme() function
The easiest method would be via $_REQUEST included in your PHP function. The reset section is done on field callback. You could also do a custom callback as well. It's all up to you.
Either way modifying the core for such a rare case would not be something we'd like to do. Sorry.
Hope you enjoy Redux though. Please post a review if you like what you see: http://wordpress.org/support/view/plugin-reviews/redux-framework