Home › Support › English Support › [Closed] WPML & Subscribe2
This topic contains 8 replies, has 3 voices, and was last updated by Amir 1 year, 11 months ago.
| Author | Posts |
|---|---|
| Author | Posts |
| March 2, 2011 at 9:25 pm #22825 | |
|
MatthewR1 |
I write Subscribe2, an email notification plugin for WordPress. There seem to be a few users that would like to get WPML and Subscribe2 playing nicely together. |
| March 3, 2011 at 8:25 am #22827 | |
|
Orit |
Hi Matthew – registered users can save their language preference on their profile page. It's saved as a user custom field called icl_admin_language Let me know if this helps. |
| March 4, 2011 at 8:53 pm #22828 | |
|
MatthewR1 |
@Mihai, |
| March 4, 2011 at 8:56 pm #22829 | |
|
Orit |
Not sure I understand your question. |
| March 4, 2011 at 9:00 pm #22830 | |
|
Amir |
Mihai is away for the weekend, so I'll help the best I can. icl_admin_language . get_posts while applying filters) to query posts. WPML will then filter and keep only results in the selected language. |
| March 8, 2011 at 8:41 pm #22831 | |
|
MatthewR1 |
Amir / Mihai, |
| March 9, 2011 at 12:02 pm #22832 | |
|
Orit |
Hi Matthew, Say a WordPress user write and translates their post and hits publish, how do I filter the $post->post_content? Still not sure what you need here. There's a WP filter called 'wp_insert_post_data' that is applied right before adding the post to the database. $post = get_post(icl_object_id(9, 'post', false, 'es'); Note that if the third parameter is false and there's no translation in es of the post with the ID-9 icl_object_id will not return anything. Otherwise it would return the ID of the original post (in this case 9). |
| May 30, 2011 at 6:56 pm #22833 | |
|
MatthewR1 |
Nearly there I think. I've created a new class that replaces some of the Subscribe2 functions when running on a WPML WordPress system. |
| May 31, 2011 at 5:54 am #22834 | |
|
Amir |
We didn't create an API function for checking the language of an item. We can add it, but it's not going to be immediate. |
The topic ‘[Closed] WPML & Subscribe2’ is closed to new replies.