wpml_setting, [], hidden_languages

wpml_setting, [], hidden_languages

Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1

apply_filters('wpml_setting, [], hidden_languages') is found 2 times:

  • /app/Common/Sitemap/Helpers.php line 446
     
    		// Allow WPML to filter out hidden language posts/terms.
    		$hiddenObjectIds = [];
    		if ( aioseo()->helpers->isWpmlActive() ) {
    			$hiddenLanguages = apply_filters( 'wpml_setting', [], 'hidden_languages' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
    			foreach ( $hiddenLanguages as $language ) {
    				$objectTypes = [];
    				if ( 'excludePosts' === $option ) {
    					$objectTypes = aioseo()->sitemap->helpers->includedPostTypes();
    					$objectTypes = array_map( function( $postType ) {
    						return "post_{$postType}";
    
  • /app/Common/Sitemap/Localization.php line 290
    			return $entry;
    		}
    
    		$entry['languages'] = [];
    		$hiddenLanguages    = apply_filters( 'wpml_setting', [], 'hidden_languages' );
    		foreach ( $translations as $translation ) {
    			if (
    				empty( $translation->element_id ) ||
    				! isset( self::$wpml['activeLanguages'][ $translation->language_code ] ) ||
    				in_array( $translation->language_code, $hiddenLanguages, true )
    			) {