Skip to content

Commit

Permalink
Merge pull request #1172 from publishpress/update/#1136-Show-Wordfenc…
Browse files Browse the repository at this point in the history
…e-capabilities-tab-for-both-Wordfence-main-and-Login-Security-plugin

update/#1136-Show-Wordfence-capabilities-tab-for-both-Wordfence-main-and-Login-Security-plugin
  • Loading branch information
olatechpro authored Sep 20, 2024
2 parents 8216061 + 08c67d5 commit 6707e6d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions includes/plugin-capabilities/wordfence-login-security.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/**
* PublishPress Capabilities [Free]
*
* Capabilities filters for the plugin Wordfence Login Security, an addon of Wordfence Security.
*
* Generated with Capabilities Extractor
*/

if (!defined('ABSPATH')) {
exit('No direct script access allowed');
}

add_filter('cme_plugin_capabilities', function ($pluginCaps) {
$pluginCaps['Wordfence Security'] = [
'wf2fa_activate_2fa_others',
'wf2fa_activate_2fa_self',
'wf2fa_manage_settings'
];

return $pluginCaps;
});

0 comments on commit 6707e6d

Please sign in to comment.