Created
August 19, 2013 14:14
-
-
Save berlotto/6269611 to your computer and use it in GitHub Desktop.
Save and retrive data to Wordpress options with HTML content !
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$var_to_save = htmlentities(stripslashes($_POST["YOUR_FORM_FIELD_NAME"])); | |
update_option("your_option_name", $var_to_save); | |
... | |
$var_to_sdhow = html_entity_decode(get_option("gd_seminario_aovivo")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment