• Resolved teresasumisu

    (@teresasumisu)


    Hi!
    I just installed your plugin and tried it out.
    In the Controller Settings I turned some fields on, they all have the pattern wpcf-name.
    When I view the data, it says wpcf_name – which retrieves null.
    Why is your plugin changing – to _ ? Can I change that?
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @teresasumisu,

    Unfortunately this is how the plugin was built: you should always use underscores for custom field names.

    I would like to fix that one day but it isn’t a high priority at the moment.

    I hope that isn’t too big of an inconvenience.

    All the best,
    Kevin.

    Thread Starter teresasumisu

    (@teresasumisu)

    Hi Kevin,

    thanks. For me it makes the plugin useless, since I have no control about how toolset saves the custom fields. But I am just registering the fields by myself for the rest api with register_rest_field() – that works fine.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    You should be able to rename your fields with our plugin as long as you use underscores instead of the default dash names. Did you try that?

    Thread Starter teresasumisu

    (@teresasumisu)

    No I did not, but I also need more from our api, so it is no problem to just code it myself. Thank you.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Agh, okay, I understand. Best of luck with your website! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changes – to _’ is closed to new replies.