apply_filters( 'cloudinary_media_context', $media_context, $attachment_id ) → {string}
Filter the media context.
This filter allows you to set a media context for the media for cases where the same asset is used in
different use cases, such as in a multilingual context.
Parameters:
Name | Type | Description |
---|---|---|
$media_context |
string | The media context. |
$attachment_id |
int | null | The attachment ID. |
- Since:
- 3.1.9
- Default Value:
- {'default'}
- Source:
Returns:
- Type
- string