Discuss your project
Wordpress Backoffice

WordPress: Remove WPML paid translation boxes

When you install WPML to manage translations, it automatically adds prompts for paid translations on the post editing page. To remove them, a simple way is to delete the box from the DOM.Insert the following code into your functions.php file: add_action( '...

WordPress: Remove WPML paid translation boxes

When you install WPML to manage translations, it automatically adds prompts for paid translations on the post editing page.
To remove them, a simple way is to delete the box from the DOM.

Insert the following code into your functions.php file:

add_action( 'admin_footer', 'wpmlRemoveBox_hook' );
function wpmlRemoveBox_hook( $hook_suffix )
{
?>
<script type="text/javascript">

jQuery( document ).ready(function() {
jQuery('.icl_cyan_box').remove();
jQuery('#cpt_info_box').remove();

});
</script>
<?php
}

Reproduce this customization today

The principle of the hook remains useful, but the administration screens and WordPress APIs have evolved since the publication. Test the code in a staging environment with the exact version of the site's core, theme, and plugins.

  • Save the files and the database before making any changes.
  • Control user capabilities, nonces, input validation, and output escaping.
  • Place customizations in a dedicated plugin or a child theme to preserve updates.

Reference: official WordPress plugin development manual.

Share this article