simeaM
|
We are using Custom Statuses in WP (with PublishPress). Any Posts on a custom status are not visible in the WPML Translation Manager
|
Kor
Supporter
Languages:
English (English )
Timezone:
Asia/Singapore (GMT+08:00)
|
Hi there,
Here is the ticket.
Could you please share FTP access here so that I can escalate this to our 2nd Tier Support for further assistance?
IMPORTANT: Please, note, a backup is required for security reasons, and to avoid any data loss, you can use the https://wordpress.org/plugins/updraftplus/plugin for these backup needs.
Your following answer will be private, which means only you and I have access to it.
Thanks!
Kor
|
Kor
Supporter
Languages:
English (English )
Timezone:
Asia/Singapore (GMT+08:00)
|
Hi there,
Thanks for your reply.
I've escalated this ticket to our 2nd Tier Support and will respond to you once I've feedback.
Thanks!
Kor
|
Kor
Supporter
Languages:
English (English )
Timezone:
Asia/Singapore (GMT+08:00)
|
Hi there,
Thanks for your patience.
We have a solution and this is what you'll have to do to allow Translation Management to display posts that are using custom post statuses.
Open .../wp-content/plugins/sitepress-multilingual-cms/menu/wpml-tm-menus-management.php:196.
In line 209 add your custom status:
$this->post_statuses = array(
'publish' => __( 'Published', 'wpml-translation-management' ),
'draft' => __( 'Draft', 'wpml-translation-management' ),
'pending' => __( 'Pending Review', 'wpml-translation-management' ),
'future' => __( 'Scheduled', 'wpml-translation-management' ),
'private' => __( 'Private', 'wpml-translation-management' ),
'in-proofreading' => __( 'In proofreading', 'wpml-translation-management' ),
);
The 'in-proofreading' is just one of your custom post statuses and you can add the rest of your custom post statuses.
Once you've done that, these posts with custom post statuses should display in the Translation Management dashboard.
Could you give it a try and let me know how it goes?
Thanks!
Kor
|
Kor
Supporter
Languages:
English (English )
Timezone:
Asia/Singapore (GMT+08:00)
|
Hi there,
Thanks for your patience.
We have an update on the code and kindly ignore the code shared above and use the code below instead.
Insert the code below into the theme's functions.php file.
apply_filters('wpml_tm_dashboard_post_statuses', 'wpmlfix_compsupp_6392');
function wpmlfix_compsupp_6392($input_array)
{
$input_array['in-proofreading'] = __('In proofreading', 'wpml-translation-management');
return $input_array;
}
Please add the required custom post status.
Let me know how it goes.
Thanks!
Kor
|
simeaM
|
Oh great, it works now! Thanks!
|