Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

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.

Our next available supporter will start replying to tickets in about 9.61 hours from now. Thank you for your understanding.


This topic contains 5 replies, has 2 voices.

Last updated by Carlos Rojas 1 month, 1 week ago.

Assigned support staff: Carlos Rojas.

Author Posts
December 5, 2019 at 10:14 am #5075153


I am trying to: translate a string using the WPML Api (not via PO file or String Translation interface).

This ticket has a similar issue:

In brief, I'm looking for the hook / method that replaces the deprecated function: icl_add_string_translation. I have checked the Hooks documentation and don't see anything equivalent.

How do I add a string translation via the API?

December 9, 2019 at 9:47 am #5091307

Carlos Rojas

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for contacting WPML support.

1.- This ticket seems to be a duplicated of

2.- Please increase the PHP Memory Limit. Minimum requirements are 128Mb:
You can add this to wp-config.php to increase WP memory:`

/** Memory Limit */
define('WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );

- Add it above the line /* That's all, stop editing! Happy blogging. */

Kind regards,

December 9, 2019 at 10:01 am #5091389


Wow - did you even read my ticket? You're miles off base.

My question concerns your API, nothing to do with memory limits. You're wasting everyone's time by replying to a ticket without reading it.

December 9, 2019 at 10:07 am #5091511

Carlos Rojas

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)


Yes I read your ticket and it seems to be a duplicated of this previous ticket:
If this is a different issue then I kindly ask you to elaborate a little more so I can have a better understanding.

Thank you very much in advance and I'm sorry if I gave you the wrong impression.

Note: The memory update recommendation is because according to the Debug Information provided in your ticket the site only has 40Mb and it should have 128Mb at least. This is a general recommendation and is not related to the issue.

Looking forward to your message.

December 9, 2019 at 10:14 am #5091525


No worries. You're correct, the original ticket must have been double posted.


December 9, 2019 at 10:18 am #5091543

Carlos Rojas

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.

Best regards,