Skip to content

How to sanitize? #17

Description

@gianghl1983

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions