wpml_object_id

wpml_object_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('wpml_object_id') is found 2 times:

  • /vendor/wpmetabox/meta-box/inc/wpml.php line 53
    		$object_type = 'taxonomy_advanced' === $field['type'] ? $field['taxonomy'] : $field['post_type'];
    
    		// Translating values, whether are stored as comma separated strings or not.
    		if ( ! str_contains( $value, ',' ) ) {
    			$value = apply_filters( 'wpml_object_id', $value, $object_type, true, $target_language );
    			return $value;
    		}
    
    		// Dealing with IDs stored as comma separated strings.
    		$translated_values = [];
    		$values            = explode( ',', $value );
    
  • /vendor/wpmetabox/meta-box/inc/wpml.php line 62
    		$translated_values = [];
    		$values            = explode( ',', $value );
    
    		foreach ( $values as $v ) {
    			$translated_values[] = apply_filters( 'wpml_object_id', $v, $object_type, true, $target_language );
    		}
    
    		$value = implode( ',', $translated_values );
    		return $value;
    	}