LLMS_Blocks::remove_metaboxes( string $post_type, string $post )
Remove deprecated core metaboxes.
Parameters Parameters
- $post_type
-
(string) (Required) WP post type of the current post.
- $post
-
(string) (Required) WP_Post.
Return Return
(void)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks.php
public function remove_metaboxes( $post_type, $post ) { if ( ! llms_blocks_is_classic_enabled_for_post( $post ) ) { remove_meta_box( 'llms-instructors', 'course', 'normal' ); remove_meta_box( 'llms-instructors', 'llms_membership', 'normal' ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.3.0 | Updated. |
1.0.0 | Introduced. |