hypejunction / actions_feature
API for featuring items
Package info
github.com/hypeJunction/Elgg-actions_feature
Type:elgg-plugin
pkg:composer/hypejunction/actions_feature
7.0.0
2026-05-09 11:46 UTC
Requires
- php: >=8.3
- ext-intl: *
- composer/installers: ^2.0
- elgg/elgg: ~7.0.0
This package is auto-updated.
Last update: 2026-05-14 09:24:31 UTC
README
Feature Action for Elgg
Features
- Standardized API for featuring items
Usage
- Register your type
elgg_register_plugin_hook_handler('feature', 'object:my_type', 'Elgg\Values::getTrue');
- Manage permissions
By default, only admins can feature/unfeature items. If you need to change that behaviour,
use 'permissions_check:feature',$entity_type hook.
- Notifications/River items
If you need to notify the owner, or create a river item, listen to 'featured',$entity_type and
'unfeatured',$entity_type events.
Compatibility
| Plugin version | Elgg version |
|---|---|
| current | 7.x |