bbp_get_quicktags_settings( $settings = array() )

Edit TinyMCE quicktags buttons to match allowedtags

Description

See also

Parameters

$buttons

(array) (Required)

Return

(array) Quicktags settings

Source

File: bp-forums/common/template.php

function bbp_get_quicktags_settings( $settings = array() ) {

	// Get buttons out of settings
	$buttons_array = explode( ',', $settings['buttons'] );

	// Diff the ones we don't want out
	$buttons = array_diff( $buttons_array, array(
		'ins',
		'more',
		'spell'
	) );

	// Put them back into a string in the $settings array
	$settings['buttons'] = implode( ',', $buttons );

	return apply_filters( 'bbp_get_quicktags_settings', $settings );
}

Changelog

Changelog
Version Description
bbPress (r4606) 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.