WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] Custom Fields should remain hidden

[Plugin: Contact Form 7] Custom Fields should remain hidden

  • First of all, thank you Takayuki for this extremely useful plugin!

    I have noticed one detail that could perhaps be improved: the plugin is adding some custom fields to WordPress, that are showing up in the Custom Fields dropdown menu. They are visible when I want do add my own custom fields to a post, for instance. The fields that I noticed are: messages, additional_settings, mail, mail_2, form. All those fields, it seems, are created by Contact Form 7.

    I believe that it would be better if those custom fields would start with “_” (underscore), or maybe even better “_wpcf7_”, so that they would be hidden from the user.

    That’s what is recommended in the WP documentation:
    http://codex.wordpress.org/Function_Reference/add_post_meta

    I hope this can be added as a fix in a future version of the plugin.

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • is there a reason these are visible?
    what’s their function?

    .. hope someone can shed some light.

    My guess is that Contact Form 7 was started a long time ago, when those custom fields were not visible to the user by default.

    And changing the names now is maybe not that trivial, in order not to break things when people are upgrading from an older version.

    On the other hand, for an advanced user, it shouldn’t be a big effort: doing a search-replace on the whole CF7 files would be enough.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Contact Form 7] Custom Fields should remain hidden’ is closed to new replies.