• Resolved mrzahoorpro

    (@mrzahoorpro)


    I am facing a warning in the following code. Tell me why the plugin check is showing a warning. I want to remove this warning.

    register_setting(
    'vendor_cutom_field',
    'vendor_cutom_field_call_back_func',
    array(
    'type' => 'string',
    'sanitize_callback' => 'sanitize_text_field',
    )
    );
Viewing 1 replies (of 1 total)
  • Plugin Author David Perez

    (@davidperez)

    Hello,

    Don’t worry about that. We know that the Register setting check has some false positives. That’s why it’s a warning instead of error. If you’re sure that you’re using a sanitizing function, you can go with that.

Viewing 1 replies (of 1 total)

The topic ‘Showing warning in register_setting’ is closed to new replies.