LLMS_Beaver_Builder::mod_metabox_fields( array $fields )
Modify LifterLMS metabox Fields to show the page builder is active.
Parameters Parameters
- $fields
-
(array) (Required) Metabox fields.
Return Return
(array)
Source Source
File: includes/class-llms-beaver-builder.php
public function mod_metabox_fields( $fields ) {
global $post;
$post_types = array( 'course', 'lesson', 'llms_membership' );
if ( in_array( $post->post_type, $post_types, true ) && FLBuilderModel::is_builder_enabled() ) {
unset( $fields[0]['fields'][0]['value']['content'] );
}
return $fields;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.7.0 | Use strict comparison for in_array. |
| 1.5.2 | Unknown. |
| 1.3.0 | Introduced. |