-
-
Save maurisrx/c20451715dc41ff41728 to your computer and use it in GitHub Desktop.
1st snippet in post "Save Multiple Option Values in A Single Database Row"
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
<?php | |
// action for registering setting options | |
add_action( 'admin_init', 'prfx_register_settings' ); | |
// function for registering prfx setting options | |
function prfx_register_settings() { | |
register_setting( 'prfx-settings-group', 'prfx_options', 'prfx_sanitize_options' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment