Polylang [Development] Preferred Language for WP Backend
-
I’m using a custom callback to show/hide a CMB2 metabox on a custom post type. Previously I’d used the callback to my own language metabox, but since I’ve integrated Polylang, I’d like to use its preferred language option so I don’t have to have the user click two language metaboxes. The trouble is, I don’t know how to get a post’s preferred language for the backend.
My question is: how can I pull the Polylang preferred language for the post on the back end post creation screen? I’ve looked at the documentation and investigated admin-filters-post.php but can’t get it to work.
Any help is appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Polylang [Development] Preferred Language for WP Backend’ is closed to new replies.