\' + \'
\' + \'\' + \'\' + \'\'; $(this).before(row); }); // Remove FAQ row $(document).on("click", ".remove-faq-row", function(e) { e.preventDefault(); $(this).closest(".faq-row").remove(); }); }); ' ); } /** * Add the main SEO + FAQ meta box. */ public function add_meta_box() { add_meta_box( 'advanced_seo_meta_box', __( 'Advanced SEO & AI FAQ Schema', 'advanced-seo-meta' ), array( $this, 'render_meta_box' ), ['post', 'page'], 'normal', 'default' ); } /** * Render the meta box (Title, Description, FAQ builder). */ public function render_meta_box( $post ) { wp_nonce_field( 'advanced_seo_nonce', 'advanced_seo_nonce' ); // Get saved values $seo_title = get_post_meta( $post->ID, '_seo_title', true ); $seo_description = get_post_meta( $post->ID, '_seo_description', true ); $faq_data = get_post_meta( $post->ID, '_seo_faq', true ); if ( ! is_array( $faq_data ) ) $faq_data = array(); ?>