bp_nouveau_invites_mce_buttons( array $buttons = array() )
Disable the WP Editor buttons not allowed in invites content.
Description
Parameters
- $buttons
-
(Optional) The WP Editor buttons list.
Default value: array()
-
(Required) The filtered WP Editor buttons list.
Source
File: bp-templates/bp-nouveau/includes/messages/functions.php
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | function bp_nouveau_invites_mce_buttons( $buttons = array () ) { $remove_buttons = array ( 'wp_more' , 'spellchecker' , 'wp_adv' , 'fullscreen' , 'alignleft' , 'alignright' , 'aligncenter' , 'formatselect' , ); // Remove unused buttons $buttons = array_diff ( $buttons , $remove_buttons ); // Add the image button //array_push( $buttons, 'image' ); return $buttons ; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | 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.