Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
We are using Custom Statuses in WP (with PublishPress). Any Posts on a custom status are not visible in the WPML Translation Manager

Solution:
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;
}

Relevant Documentation:

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.

This topic contains 6 replies, has 2 voices.

Last updated by simeaM 1 year, 7 months ago.

Assisted by: Kor.

Author Posts
September 1, 2022 at 1:14 pm

simeaM

We are using Custom Statuses in WP (with PublishPress). Any Posts on a custom status are not visible in the WPML Translation Manager

September 1, 2022 at 1:53 pm
September 1, 2022 at 1:58 pm #11971737

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

September 1, 2022 at 2:19 pm
September 2, 2022 at 5:02 pm #11979129

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

September 5, 2022 at 6:51 am #11986501

simeaM

Thanks!

September 8, 2022 at 2:19 pm #12014995

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

September 9, 2022 at 7:05 am #12019639

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

September 13, 2022 at 1:08 pm #12043407

simeaM

Oh great, it works now! Thanks!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.