WordPress filter hook

patips_translate_text_external

Fired by 2 WordPress plugins, running on 3,000+ sites between them.

How to use patips_translate_text_external

It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'patips_translate_text_external', function( $post_title, $arg2, $arg3, $arg4 ) {
	// Change $post_title here.
	return $post_title;
}, 10, 4 );

Argument names come from Booking Activities's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire patips_translate_text_external

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Booking Activities icon Booking Activities3,000+ installs apply_filters( 'patips_translate_text_external', $page->post_title, false, true, array( 'domain' => 'wordpress', 'object_type' => 'page', 'object_id' => $page_id, 'field' => 'post_title' ) ) controller/controller-woocommerce-frontend.php:2313
  2. Patrons Tips icon Patrons TipsFewer than 10 installs apply_filters( 'patips_translate_text_external', $product[ 'title' ], false, true, array( 'domain' => 'woocommerce', 'object_type' => 'product', 'object_id' => $product_id, 'field' => 'post_title' ) ) controller/controller-woocommerce-backend.php:66

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.