Noptin_Post_Types::add_meta_boxes( string $post_type )
Registers the meta box required to render our form edit screen.
Parameters Parameters
- $post_type
(string) (Required) Post type of the post being edited.
Source Source
File: includes/class-noptin-post-types.php
public function add_meta_boxes( $post_type ) { if ( 'noptin-form' === $post_type ) { add_meta_box( 'noptin_form_editor', __( 'Form Editor', 'newsletter-optin-box' ), array( $this, 'render_form_editor' ), $post_type, 'normal', 'high' ); } }
Expand full source code Collapse full source code View on GitHub