bbp_get_teeny_mce_buttons( array $buttons = array() )
Edit TeenyMCE buttons to match allowedtags
Description
See also
Parameters
- $buttons
-
(Optional)
Default value: array()
Return
(array)
Source
File: bp-forums/common/template.php
function bbp_get_teeny_mce_buttons( $buttons = array() ) {
// Remove some buttons from TeenyMCE
$buttons = array_diff( $buttons, array(
'underline',
'justifyleft',
'justifycenter',
'justifyright'
) );
// Images
//array_push( $buttons, 'image' );
return apply_filters( 'bbp_get_teeny_mce_buttons', $buttons );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r4605) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.