Plugin Directory

Changeset 2905790


Ignore:
Timestamp:
04/28/2023 04:35:31 PM (3 years ago)
Author:
pjv
Message:

Updating readme/assets from GitHub

Location:
nostrtium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nostrtium/tags/0.6.1/readme.txt

    r2905773 r2905790  
    3636You can create a filter snippet (in your theme's functions.php) to choose what user role or capability has access to Nostrtium functionality. The default is `edit_posts`. Here is a sample snippet that would change it so only adminstrators can see / use the plugin's functionality:
    3737
    38 ````
    39 add_filter ('nostrtium_role', function($role){
    40     return 'administrator';
    41 });
    42 ````
     38    add_filter ('nostrtium_role', function($role){
     39        return 'administrator';
     40    });
    4341
    4442== Installation ==
  • nostrtium/trunk/readme.txt

    r2905773 r2905790  
    3636You can create a filter snippet (in your theme's functions.php) to choose what user role or capability has access to Nostrtium functionality. The default is `edit_posts`. Here is a sample snippet that would change it so only adminstrators can see / use the plugin's functionality:
    3737
    38 ````
    39 add_filter ('nostrtium_role', function($role){
    40     return 'administrator';
    41 });
    42 ````
     38    add_filter ('nostrtium_role', function($role){
     39        return 'administrator';
     40    });
    4341
    4442== Installation ==
Note: See TracChangeset for help on using the changeset viewer.