Changeset 2905790
- Timestamp:
- 04/28/2023 04:35:31 PM (3 years ago)
- Location:
- nostrtium
- Files:
-
- 2 edited
-
tags/0.6.1/readme.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nostrtium/tags/0.6.1/readme.txt
r2905773 r2905790 36 36 You 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: 37 37 38 ```` 39 add_filter ('nostrtium_role', function($role){ 40 return 'administrator'; 41 }); 42 ```` 38 add_filter ('nostrtium_role', function($role){ 39 return 'administrator'; 40 }); 43 41 44 42 == Installation == -
nostrtium/trunk/readme.txt
r2905773 r2905790 36 36 You 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: 37 37 38 ```` 39 add_filter ('nostrtium_role', function($role){ 40 return 'administrator'; 41 }); 42 ```` 38 add_filter ('nostrtium_role', function($role){ 39 return 'administrator'; 40 }); 43 41 44 42 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.