JReviews logo Docs
Menu
Version

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.

Filter
Other
Since 6.0.0

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;
});
Development & Support
Customizations are not included with support. We provide this information to make it easier for developers to extend the functionality. From time to time we may have some availability for custom work. Get in touch to see if there's an opportunity to work together.

Source Files

  • app/Policies/JoomlaEditorFieldPolicy.php