$value ) { add_meta_box( 'ataswp_auto_post_metabox', __( 'ATAS - Auto Post', 'ataswp_lang' ), array( $this, 'render_auto_post_metabox' ), $value, // post type 'side', 'high' ); } } } } /** * Render Metaboxes. * * @since 1.0.0 * @param object $post * @return void */ public function render_auto_post_metabox( $post ) { // Add nonce for security and authentication. wp_nonce_field( 'ataswp_auto_post_metabox_nonce_action', 'ataswp_auto_post_metabox_nonce' ); // Get the meta for all keys for the current post $meta = get_post_meta( $post->ID ); $post_id = $post->ID; ?>