You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
Hi @FrankenSteinxD Languages are related to sites and not posts, I think to get the blog language from post, you need to create a function that get the blog ID from the post object/id value.
I'm not sure if is there a function for that in WordPress I looked for it but I haven't found and probably that means you have to write a query to retrieve it.
But I think you are talking about mlp2 am I right?
Version Information
Is there any function that I can pass it the post ID and get its language ? something like this:
mlp_get_post_language( $post->ID ) // en
I couldn't find it in the docs.
The text was updated successfully, but these errors were encountered: