Wysiwyg::filter_buttons( array $buttons )

Filters editor buttons.


Parameters

$buttons

(array) (Required) Array of buttons to include.


Top ↑

Return

(array) Filtered array of buttons.


Top ↑

Source

File: src/Tribe/Admin/Wysiwyg.php

	public function filter_buttons( $buttons ) {
		if (
			empty( $this->args )
			|| ! isset( $this->args['buttons'] )
			|| empty( $this->args['buttons'] )
		) {
			return $buttons;
		}

		return $this->args['buttons'];
	}

Top ↑

Changelog

Changelog
Version Description
5.0.12 Introduced.