wpml_object_id
Returns the object identifier for the current language (WPML).
Type: filter
Since: 3.5.0
Source: includes/frontend/class-language-handler.php line 114
Parameters
| Type | Name | Description |
|---|---|---|
int|string|\WP_Post | $post | Post object or Post ID. |
Usage
add_filter( 'wpml_object_id', function($post) {
// ...
return $post;
} );