LLMS_Meta_Box_Product::mce_buttons( array $buttons, string $id )
Filter the available buttons in the Plan Description editors
Parameters Parameters
- $buttons
-
(array) (Required) array of default buttons
- $id
-
(string) (Required) editor id
Return Return
(array)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.product.php
public function mce_buttons( $buttons, $id ) { if ( strpos( $id, '_llms_plans_content' ) !== false ) { $buttons = array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', ); } return $buttons; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |