Validate plugin setting

  • Unknown's avatar

    I am trying to understand how to use WP_Customize_Setting::validate(). For example, a setting named rma_user_data_uri should be saved if filter_var($data, FILTER_VALIDATE_URL) returns $data (where $data is submitted value of rma_user_data_uri) and allow save, or not save if filter_var(...) is false and return to the settings form ‘Invalid URI’. How might this be constructed using WP_Customize_Setting::validate()?

  • Unknown's avatar

    Sorry but you are in the wrong place.
    These forums are only for blogs/sites hosted by WordPress.com

    WordPress.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.