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.


Top ↑

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'
			);
		}

	}

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation