jreviews:permission:joomla_editor_field.xtd_buttons
Joomla-specific hook to filter permission to use Joomla editor XTD (editor-xtd) buttons in WYSIWYG editor fields. These buttons allow inserting content like articles, modules, or media into the editor.
You need to have a working knowledge of Hooks before you get started.
Fires when checking if user can access Joomla editor XTD buttons in WYSIWYG fields
Parameters
| Name | Type | Description |
|---|---|---|
$canUseButtons |
bool |
Whether user can access editor XTD buttons (based on configured access groups) |
$user |
\JReviews\App\Models\User |
The user attempting to access XTD buttons |
Boilerplate Code
Use the boilerplate code to start using the filter, and add your own logic to modify the first argument and return it.
fwd_add_filter('jreviews:permission:joomla_editor_field.xtd_buttons', function($canUseButtons, $user)
{
// Your code here
return $canUseButtons;
});
Source Files
app/Policies/JoomlaEditorFieldPolicy.php