bbp_get_quicktags_settings( array $settings = array() )

Edit TinyMCE quicktags buttons to match allowedtags


Description Description

See also See also


Top ↑

Parameters Parameters

$settings

(Optional)

Default value: array()


Top ↑

Return Return

(array) Quicktags settings


Top ↑

Source Source

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

	// Filter & return
	return apply_filters( 'bbp_get_quicktags_settings', $settings );
}

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.