wpml_object_id

wpml_object_id

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

See hook in core

Displaying hooks found in version: wp-stateless.4.4.1

apply_filters('wpml_object_id') is found 3 times:

  • /vendor/wpmetabox/meta-box/src/Integrations/WPML.php line 52
    		$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/src/Integrations/WPML.php line 61
    		$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;
    	}
    
    
  • /vendor/wpmetabox/meta-box/src/Integrations/WPML.php line 127

    Warning: Undefined array key 129 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 130 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 131 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 132 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    				return $this->get_translated_id( $sub_id, $type, $current_language );
    			}, $id );
    		}
    
    		return is_numeric( $id ) ? apply_filters( 'wpml_object_id', $id, $type, true, $current_language ) : $id;
    	}
    }