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!
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!