/** * helper function that prefixes the options with current theme option slug. */ function prepare_option($opt) { return sprintf('%s[%s]', pl_base_settings_slug(), $opt); }
function pl_update_all_settings($settings, $editID = false) { if ($editID !== false) { update_post_meta($editID, pl_base_settings_slug(), $settings); } else { update_option(pl_base_settings_slug(), $settings); } }