'', 'hide_header' => '', 'hide_footer' => '', 'hide_breadcrumb' => '', 'cover' => '', 'show_excerpt' => '', 'wc_apply_product' => '', ) ); foreach ( $settings as $key => $value ) { // Update the meta field. update_post_meta( $post_id, '_' . $key, sanitize_text_field( $value ) ); } } /** * Render Meta Box content. * * @param WP_Post $post The post object. */ public function render_meta_box_content( $post ) { // Add an nonce field so we can check for it later. wp_nonce_field( 'onepress_page_settings', 'onepress_page_settings_nonce' ); $values = array( 'hide_page_title' => '', 'hide_header' => '', 'hide_footer' => '', 'hide_breadcrumb' => '', 'cover' => '', 'show_excerpt' => '', 'wc_apply_product' => '', ); foreach ( $values as $key => $value ) { $values[ $key ] = get_post_meta( $post->ID, '_' . $key, true ); } ?>

ID ) { ?>