, rank_math()->version ); wp_enqueue_style( 'rank-math-content-ai', rank_math()->plugin_url() . 'includes/modules/content-ai/assets/css/content-ai.css', [ 'rank-math-common' ], rank_math()->version ); wp_enqueue_script( 'rank-math-content-ai', rank_math()->plugin_url() . 'includes/modules/content-ai/assets/js/content-ai.js', [ 'rank-math-editor' ], rank_math()->version, true ); } /** * Add meta data to use in gutenberg. * * @param array $values Aray of tabs. * @param Screen $screen Sceen object. * * @return array */ public function add_metadata( $values, $screen ) { $countries = []; foreach ( Helper::choices_contentai_countries() as $value => $label ) { $countries[] = [ 'value' => $value, 'label' => $label, ]; } $values['contentAiCountry'] = Helper::get_settings( 'general.content_ai_country', 'all' ); $values['countries'] = $countries; $values['ca_credits'] = get_option( 'rank_math_ca_credits' ); $values['ca_keyword'] = ''; $values['ca_viewed'] = true; $content_ai_viewed = get_option( 'rank_math_content_ai_viewed', false ); if ( ! $content_ai_viewed ) { $values['ca_viewed'] = false; update_option( 'rank_math_content_ai_viewed', true ); } $keyword = $screen->get_meta( $screen->get_object_type(), $screen->get_object_id(), 'rank_math_ca_keyword' ); if ( empty( $keyword ) ) { return $values; } $data = get_option( 'rank_math_ca_data' ); $country = empty( $keyword['country'] ) ? '' : $keyword['country']; if ( ! empty( $data[ $country ] ) && ! empty( $data[ $country ][ mb_strtolower( $keyword['keyword'] ) ] ) ) { $values['ca_data'] = $data[ $country ][ mb_strtolower( $keyword['keyword'] ) ]; } $values['ca_keyword'] = $keyword; return $values; } /** * Ajax callback to update the Content AI Credits. */ public function update_content_ai_credits() { check_ajax_referer( 'rank-math-ajax-nonce', 'security' ); $this->has_cap_ajax( 'content_ai' ); $this->success( [ 'credits' => Helper::get_content_ai_credits( true ), ] ); } /** * Reorder the Content AI metabox in Classic editor. * * @param string $id Metabox ID. * @return void */ private function reorder_content_ai_metabox( $id ) { $post_type = WordPress::get_post_type(); if ( ! $post_type ) { return; } $user = wp_get_current_user(); $order = (array) get_user_option( 'meta-box-order_' . $post_type, $user->ID ); if ( ! empty( $order['normal'] ) && false !== strpos( $order['normal'], $id ) ) { return; } $order['side'] = ! isset( $order['side'] ) ? '' : $order['side']; if ( false !== strpos( $order['side'], $id ) ) { return; } if ( false === strpos( $order['side'], 'submitdiv' ) ) { $order['side'] = 'submitdiv,' . $order['side']; } if ( ',' === substr( $order['side'], -1 ) ) { $order['side'] = substr( $order['side'], 0, -1 ); } $current_order = []; $current_order = explode( ',', $order['side'] ); $key = array_search( 'submitdiv', $current_order, true ); if ( false === $key ) { return; } $new_order = array_merge( array_slice( $current_order, 0, $key + 1 ), [ $id ] ); if ( count( $current_order ) > $key ) { $new_order = array_merge( $new_order, array_slice( $current_order, $key + 1 ) ); } $order['side'] = implode( ',', array_unique( $new_order ) ); update_user_option( $user->ID, 'meta-box-order_' . $post_type, $order, true ); } /** * Whether to load Content AI data. */ private function can_add_tab() { return in_array( WordPress::get_post_type(), (array) Helper::get_settings( 'general.content_ai_post_types' ), true ); } } Healthy Recipes Using Eggs - HealthifyMe Blog - HNT
Home exercise Healthy Recipes Using Eggs – HealthifyMe Blog

Healthy Recipes Using Eggs – HealthifyMe Blog

53


Alpa Momaya

As the holder of a Post Graduate Diploma in Dietetics from the University of Mumbai, Alpa Momaya has always understood the value of good nutrition in an individual’s life. She is a Registered Nutritional Practitioner (Canada) with over 15 years of experience in the field. Specializing in Clinical Nutrition, Pre & Post Natal Diets, and Weight Management, Alpa found her calling as a Sr. Nutritionist with HealthifyMe. Alpa’s love for cooking and good nutrition has seen her contribute several recipes to the HealthifyMe database over the years. Additionally, she takes a keen interest in reading and painting.

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here