phpwordpresswpallimport

How do you change the wpallimport capabilities


The default capability is 'manage_options'. How do you customize the capability so I can add this to any user role I want?


Solution

  • It looks like you can edit the static property of PMXI_Plugin on init

    add_action('init', function () {
        PMXI_Plugin::$capabilities = 'wpallimport_manage';
    });