l_identifiers_values', true ); if ( ! is_array( $identifiers ) || empty( array_filter( $identifiers ) ) ) { $parent_product = wc_get_product( $product->get_parent_id() ); $identifiers = $this->get_identifier_meta( $parent_product ); } return $identifiers; } return $product->get_meta( 'wpseo_global_identifier_values', true ); } /** * * Merge the YOAST Fields with the Attribute Mapping available sources * * @param array $sources The current sources * @param string $attribute_id The Attribute ID * @return array The merged sources */ protected function load_yoast_seo_attribute_mapping_sources( array $sources, string $attribute_id ): array { if ( $attribute_id === GTIN::get_id() ) { return array_merge( self::get_yoast_seo_attribute_mapping_gtin_sources(), $sources ); } if ( $attribute_id === MPN::get_id() ) { return array_merge( self::get_yoast_seo_attribute_mapping_mpn_sources(), $sources ); } return $sources; } /** * Load the group disabled option for Attribute mapping YOAST SEO * * @return array The disabled group option */ protected function get_yoast_seo_attribute_mapping_group_source(): array { return [ 'disabled:' . self::VALUE_KEY => __( '- Yoast SEO -', 'google-listings-and-ads' ) ]; } /** * Load the GTIN Fields for Attribute mapping YOAST SEO * * @return array The GTIN sources */ protected function get_yoast_seo_attribute_mapping_gtin_sources(): array { return array_merge( self::get_yoast_seo_attribute_mapping_group_source(), [ self::VALUE_KEY . ':gtin' => __( 'GTIN Field', 'google-listings-and-ads' ) ] ); } /** * Load the MPN Fields for Attribute mapping YOAST SEO * * @return array The MPN sources */ protected function get_yoast_seo_attribute_mapping_mpn_sources(): array { return array_merge( self::get_yoast_seo_attribute_mapping_group_source(), [ self::VALUE_KEY . ':mpn' => __( 'MPN Field', 'google-listings-and-ads' ) ] ); } }
Warning: class_implements(): Class Automattic\WooCommerce\GoogleListingsAndAds\Integration\YoastWooCommerceSeo does not exist and could not be loaded in /htdocs/wp-content/plugins/google-listings-and-ads/src/Internal/DependencyManagement/AbstractServiceProvider.php on line 73

Warning: foreach() argument must be of type array|object, bool given in /htdocs/wp-content/plugins/google-listings-and-ads/src/Internal/DependencyManagement/AbstractServiceProvider.php on line 73
Shop - NPS-Machines d'impression maroc