AnsPress_Hooks::editor_buttons( array $buttons, string $editor_id )

Description #

Configure which button will appear in wp_editor

Parameters #

  • $buttons
    array (Required) Button names.
  • $editor_id
    string (Required) Editor ID.

Source #

File: includes/hooks.php

	public static function editor_buttons( $buttons, $editor_id ) {
		if ( is_anspress() || ap_is_ajax() ) {
			return array( 'bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'link', 'unlink', 'blockquote', 'pre' );
		}

		return $buttons;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment