Validate plugin setting
-
I am trying to understand how to use
WP_Customize_Setting::validate(). For example, a setting namedrma_user_data_urishould be saved iffilter_var($data, FILTER_VALIDATE_URL)returns $data (where $data is submitted value ofrma_user_data_uri) and allow save, or not save iffilter_var(...)is false and return to the settings form ‘Invalid URI’. How might this be constructed usingWP_Customize_Setting::validate()? -
Sorry but you are in the wrong place.
These forums are only for blogs/sites hosted by WordPress.comWordPress.COM and WordPress.ORG are completely separate and different http://support.wordpress.com/com-vs-org/
And you should ask in the WordPress.org forums.
http://wordpress.org/support/If you don’t have a username on the ORG forums, you’ll need to register one there.
Cheers
- The topic ‘Validate plugin setting’ is closed to new replies.