AnsPress_Hooks::editor_buttons( array $buttons, string $editor_id )
Description #
Configure which button will appear in wp_editor
Parameters #
- $buttonsarray (Required) Button names.
- $editor_idstring (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; }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:491
Add your comment