• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Giving Shop_Manager access to wordfence

Giving Shop_Manager access to wordfence

  • Unknown's avatar
    erolwebmanage · Member · Feb 24, 2025 at 8:34 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi,
    Is it possible to grant Wordfence access to the Shop_Manager role.
    I have been trying to achieve this for a couple days without success.

    Here is a snippet I use but I can’t see the wordfence menu and if I use the url of Wordfence I do not get access.

    Thanks a lot

    function add_wordfence_caps_to_shop_manager() {
    // Get the Shop Manager role
    $shop_manager_role = get_role(‘shop_manager’);

    // Add Wordfence capabilities
    if ($shop_manager_role) {
        $shop_manager_role->add_cap('wordfence');
        $shop_manager_role->add_cap('wordfence_options');
    }

    }
    add_action(‘init’, ‘add_wordfence_caps_to_shop_manager’);

  • Unknown's avatar
    erolwebmanage · Member · Feb 24, 2025 at 8:38 am
    • Copy link Copy link

    Using “User Role Editor” plugin I can see that Shop_Manager hase the following capabilities so that should work in theory?

    delete_wordfence_logs
    edit_wordfence_logs
    list_wordfence_logs
    read_wordfence_logs
    view_wordfence_live_traffic
    view_wordfence_logs
    view_wordfence_scans
    wordfence
    wordfence_options

  • Unknown's avatar
    staartmees · Member · Feb 24, 2025 at 8:59 am
    • Copy link Copy link

    We can’t help with custom coding and third party plugins as Wordfence. You must take a look in the documentation of Wordfence.

  • Unknown's avatar
    staff-webwizard · Staff · Feb 24, 2025 at 1:55 pm
    • Copy link Copy link

    Hi erolwebmanage!

    WordFence Security is incompatible with WordPress.com as it conflicts with our default security features: https://wordpress.com/support/plugins/incompatible-plugins/#security-plugins

    If your question is related to a self-hosted site, I recommend you check the WordFence support forum (https://wordpress.org/support/plugin/wordfence/) or contact them directly at https://www.wordfence.com/contact/

    Best,

  • The topic ‘Giving Shop_Manager access to wordfence’ is closed to new replies.

Tags

  • .org
  • account
  • design

About this topic

  • In: Support
  • 2 participants
  • 3 replies
  • Last activity 10 months
  • Latest reply from erolwebmanage

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions