bbp_get_teeny_mce_buttons( array $buttons = array() )

Edit TeenyMCE buttons to match allowedtags


Description Description

See also See also


Top ↑

Parameters Parameters

$buttons

(Optional)

Default value: array()


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/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' );

	// Filter & return
	return apply_filters( 'bbp_get_teeny_mce_buttons', $buttons );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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