Tag Info

New answers tagged

0

You can't. If you're using the settings API correctly, here's what happens when you try to save your options: Form posts to options.php WordPress handles $_POST and runs update_option on your registered settings Your sanitize callback from register_setting is applied Any data that fails/you don't return in your callback isn't saved WordPress redirects ...


0

I realize this is an old question, but I recently needed to do just this. My solution was to hook into wp_head and run any shortcodes in the post content. This works because the shortcodes I'm dealing with call wp_enqueue_script and wp_enqueue_style when they are processed. The code looks something like this: function example_shortcodes() { global ...



Top 50 recent answers are included