Add get_option to jquery

Anyway, basically Hody_McGee gave the answer in his comment: You could use wp_localize_script(). As it states in the Codex: [wp_localize_script()] can be used to make any data available to your script that you can normally only get from the server side of WordPress. How do we do this? <?php add_action( ‘wp_enqueue_scripts’, ‘register_scripts’ ); function register_scripts(){ … Read more

Is there a wildcard/catchall filter hook?

I’ve tried the same thing and was able to hook into the pre_option_ filter by using all as filter. add_filter(‘all’, ‘pre_option_’,1,3); function pre_option_($actionHook,$bool=false,$option_name) { if(strpos($actionHook,’pre_option_’) === FALSE){ return $bool; } }

Cleaning “cron” from options table, will affect anything?

If you want a quick programmatic way of looping through everything you have in the cron row inside wp_options and you have access to the site’s database directly (either in a local development environment or on a webhost), you can run something like this via the command line: mysql $YOUR_DB_NAME -e “SELECT option_value FROM wp_options … Read more

Admin page repeatable fields

Try this one http://jsfiddle.net/jaredwilli/tZPg4/4/ and use array so input should be something like this <input type=”text” name=”data[1][time][start]”> <input type=”text” name=”data[1][time][end]”> <input type=”text” name=”data[2][time][start]”> <input type=”text” name=”data[2][time][end]”> …. then save data as array update_post_meta($post_id, ‘field_name’, $_POST[‘data’]);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)