bp_nouveau_messages_mce_buttons( array $buttons = array() )

Disable the WP Editor buttons not allowed in messages content.

Parameters Parameters


(array) (Optional) The WP Editor buttons list.

Default value: array()

(array) (Required) The filtered WP Editor buttons list.

Source Source

File: bp-templates/bp-nouveau/includes/messages/functions.php

function bp_nouveau_messages_mce_buttons( $buttons = array() ) {
	$remove_buttons = array(

	// Remove unused buttons
	$buttons = array_diff( $buttons, $remove_buttons );

	// Add the image button
	array_push( $buttons, 'image' );

	return $buttons;

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.