Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to sanitize? #17

Open
gianghl1983 opened this issue Feb 2, 2021 · 0 comments
Open

How to sanitize? #17

gianghl1983 opened this issue Feb 2, 2021 · 0 comments

Comments

@gianghl1983
Copy link

Hi,

I tried this in text sample field

// Field: Text. $wposa_obj->add_field( 'wposa_basic', array( 'id' => 'text', 'type' => 'text', 'name' => __( 'IT24 Text', 'WPOSA' ), 'desc' => __( 'Text input description', 'WPOSA' ), 'default' => 'Default Text', 'sanitize_callback' => 'it24_sanitize', ) );

In Class field I put function like this

/** * Satinilize Callback */ function it24_sanitize($input) { return 'IT24'; }

But it did not work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant