Remove Contact Form 7 From WordPress Admin Menu – Gradient GraphicsGradient Graphics

/* Remove Contact Form 7 Links from dashboard menu items if not admin */

if (!(current_user_can('administrator'))) {

function remove_wpcf7() {

remove_menu_page( 'wpcf7' );

}

add_action('admin_menu', 'remove_wpcf7');

}

via Remove Contact Form 7 From WordPress Admin Menu – Gradient GraphicsGradient Graphics.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.