Tag Info

New answers tagged

0

Atlast I found a way add_action( 'init', 'run_this_code', 1 ); function run_this_code() { ob_start(); require('dynamic-css.php'); $content = ob_get_contents(); ob_end_clean(); $f = fopen("custom.css", "w"); fwrite($f, $content); fclose($f); }


0

look a the 'Using a Hook' on here: WP Codex


1

This is called wp editor, which uses tinymce editor and odds. This editor can be called using wp_editor function. To display it on your options page, use wp_editor(); Like - $field_value = get_option('a_custom_textarea'); $field_name = 'a_custom_textarea'; wp_editor( $field_value, $field_name ); Ref - ...


1

As I mentioned here those 2 ajax actions, here is how you can use the second action that extracts form values in db format Create an ajax action that will return the settings options You can add this code to {theme}/functions.php or to {theme}/inc/hooks.php function _action_ajax_fw_theme_get_settings_options() { wp_send_json_success(array( ...



Top 50 recent answers are included