Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Kor 6 months, 1 week ago.

Assisted by: Kor.

Author Posts
June 7, 2024 at 4:51 pm #15717526

justinV-10

Background of the issue:
I have a complex custom developed site and want to give custom user roles access to translate custom post types. There are multiple issues already reported all leading to the following page: https://wpml.org/errata/wpml-custom-role-based-on-the-editor-role-cannot-edit-translations-and-behave-as-editor/ However, I have the latest update installed and the code in the user class still looks like this. public static function isEditor( WP_User $user = null ) { foreach ( static::ROLE_EDITOR_MINIMUM_CAPS as $cap ) { if ( ! self::hasCap( $cap, $user ) ) { return false; } } return true; }

Symptoms:
The workaround provided is not upgrade safe.

Questions:
How can I allow custom user roles to translate custom post types?
How can I make the workaround upgrade safe?

June 7, 2024 at 8:25 pm #15717751

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

After reviewing the code, could you grant me access to your website and demonstrate how the code is hindering your desired outcome? Additionally, please explain the adjustments you've made to address the issue based on the workaround provided. This information is necessary for me to compile a report for our 2nd Tier Support to investigate further.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

June 10, 2024 at 7:55 am #15720521

justinV-10

I am clearfiying the issue in this loom: hidden link

The application is in production already and i can definitely not share credentials. To be honest, i am having a hard time understand what the credentials you are requesting are used for. Just check the code and the loom. This is NOT about third party dependencies. The missing hook will not magically show up when deactiviating other plugins. It is purely a thing about your very own code implementation.

This is clearly a "bug" or at least a not ideal implementation that each of your developers should be able to identify immediately.

Let me know if you need further details.

June 10, 2024 at 3:41 pm #15723081

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for responding.

I'd like to escalate this matter to our 2nd Tier Support for a thorough review. I'll update you as soon as I receive feedback.

June 11, 2024 at 7:25 am #15724810

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to us.

Our secondary support team has examined your query and noted that it pertains to a hook, which will be treated as a feature request. They have forwarded this to our developers for further evaluation.

June 12, 2024 at 10:45 am #15730969

justinV-10

This is quite disappointing feedback. According to your documented workaround, this hook should already be added in one of the previous versions.

This is terrible developer experience if i cannot trust your documentation. Also, this is definitely not a feature request but a bug, since again it is supposed to work with this hook.

In the forum I can see many users waiting desperately for 4.7 since there are also many deprecation notices that are not fixed!.

With all respect, I would like to ask for an ETA, because without one I have to evaluate if it makes sense building sites on WPML. This is not reliable at all.

June 12, 2024 at 1:01 pm #15731738

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've shared your feedback with our 2nd Tier Support and I will come back to you once I hear from them.

June 12, 2024 at 2:34 pm #15732201

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

I've got feedback from our 2nd Tier Support indicating that our developers will be reaching out to you shortly regarding this matter. We'll keep you informed about the status as soon as we have an update.

June 18, 2024 at 8:57 pm #15750921

justinV-10

Not heard anything yet.

June 18, 2024 at 9:10 pm #15750934

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response. Unfortunately, there have been no updates from our developers yet. I'll get back to you as soon as I hear from them.