ID, '_ast_meta_title', true ); $description = get_post_meta( $post->ID, '_ast_meta_description', true ); $keywords = get_post_meta( $post->ID, '_ast_meta_keywords', true ); echo '

'; echo '
'; echo ''; echo '

'; echo '

'; echo '
'; echo ''; echo '

'; echo '

'; echo '
'; echo ''; echo '

'; } public function save_meta_boxes( $post_id ) { if ( ! isset( $_POST['ast_seo_meta_box_nonce'] ) ) { return; } if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['ast_seo_meta_box_nonce'] ) ), 'ast_seo_meta_box' ) ) { return; } if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } if ( ! current_user_can( 'edit_post', $post_id ) ) { return; } if ( isset( $_POST['ast_meta_title'] ) ) { update_post_meta( $post_id, '_ast_meta_title', sanitize_text_field( wp_unslash( $_POST['ast_meta_title'] ) ) ); } if ( isset( $_POST['ast_meta_description'] ) ) { update_post_meta( $post_id, '_ast_meta_description', sanitize_textarea_field( wp_unslash( $_POST['ast_meta_description'] ) ) ); } if ( isset( $_POST['ast_meta_keywords'] ) ) { update_post_meta( $post_id, '_ast_meta_keywords', sanitize_text_field( wp_unslash( $_POST['ast_meta_keywords'] ) ) ); } } }