WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Having only Admin editing rights (3 posts)

  1. wellsite
    Member
    Posted 4 years ago #

    I want to ensure that only Administrators can can access the plugin and edit the Contact Forms.

    I have placed the lines as instructed in Contact Form 7 tips within the wp_config.php file. This has not taken effect. Not sure, if they need to be anywhere special, so I have just added them to the end:

    Here is the extract of the bottom half of the file.

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    /** Wellsites: restricting access to Contact Form 7 **/
    define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
    define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
    ?>

    Have I included them correctly? Is there a step I'm missing to make these changes take effect?

    Thank you in advance for your help.

    PS. Are there any plans to add role capability as an option within wordpress? Just like NextGen Gallery?

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

    It's wrong place. See the example in this post:

    Contact Form 7: Controlling Behavior by Setting Constants

  3. wellsite
    Member
    Posted 4 years ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic