WordPress filter hook

mlp_language_api

Fired by 5 WordPress plugins, running on 16K+ sites between them.

“Get the Language API object.”

How to use mlp_language_api

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

functions.php
add_filter( 'mlp_language_api', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

5 plugins that fire mlp_language_api

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

  1. Molongui Authorship icon Molongui Authorship10,000+ installs apply_filters( 'mlp_language_api', NULL ) common/utils/helpers.php:493
  2. Sticky Posts icon Sticky Posts5,000+ installs apply_filters( 'mlp_language_api', NULL ) settings/class-settings.php:140
  3. Order Bump for WooCommerce icon Order Bump for WooCommerce600+ installs apply_filters( 'mlp_language_api', NULL ) includes/helpers/common/i18n.php:42
  4. Molongui Post Contributors: Multi-Role Contributor Attribution icon Molongui Post Contributors: Multi-Role Contributor Attribution400+ installs apply_filters( 'mlp_language_api', NULL ) common/utils/helpers.php:397
  5. MultilingualPress icon MultilingualPress50+ installs apply_filters( 'mlp_language_api', null ) inc/common/Mlp_Helpers.php:419

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.