-
Notifications
You must be signed in to change notification settings - Fork 34
Filter Hooks
Below you can find all currently available, not deprecated filter hooks, in alphabetical order.
Filter the allowed post types.
Parameters:
-
string[]$allowed_post_typesAllowed post type names. -
Mlp_Translation_Metabox$meta_boxTranslation meta box object.
Return: string[]
Filter the capability required to view the dashboard widget.
Parameters:
-
string$capabilityCapability required to view the dashboard widget.
Return: string
Filter the default value for the search engine visibility when adding a new site.
Parameters:
-
bool$visibleShould the new site be visible by default?
Return: bool
Filter whether the user should be redirected.
Parameters:
-
bool$do_redirectRedirect or not?
Return: bool
Filter the visibility of the module in the features table.
Parameters:
-
bool$invisibleShould the module be hidden?
Return: bool
Filter whether to use an external save method instead of the built-in method.
Parameters:
-
bool$external_save_methodUse an external save method?
Return: bool
Filter the translation arguments.
Parameters:
-
array$argumentsTranslation arguments.
Return: array
Filter the output of the hreflang links in the HTML head.
Parameters:
-
string$htmlMarkup generated by MultilingualPress. -
string$languageLanguage code (e.g., 'en-US'). -
string$urlTarget URL.
Return: string
Filter the output of the hreflang links in the HTTP header.
Parameters:
-
string$headerHeader generated by MultilingualPress. -
string$languageLanguage code (e.g., 'en-US'). -
string$urlTarget URL.
Return: string
Get the Language API object.
Parameters:
-
Mlp_Language_Api_Interface$language_apiLanguage API object.
Return: Mlp_Language_Api_Interface
Filter the remote URL of the linked element.
Parameters:
-
string$remote_urlURL of the remote post. -
int$target_site_idID of the target site. -
int$target_content_idID of the target post. -
Mlp_Translation_Interface$translationTranslation object.NULL, if there is no translation.
Return: string
Filter mutually exclusive taxonomies.
Parameters:
-
string[]$taxonomiesMutually exclusive taxonomy names.
Return: string[]
Filter the post translator activation checkbox callback.
Parameters:
-
array|string$callbackCallback name or class-method array.
Return: array|string
Filter the post data before saving the post.
Parameters:
-
array$post_dataPost data. -
array$save_contextContext of the to-be-saved post.
Return: array
Filter post meta data before saving.
Parameters:
-
array$post_metaPost meta data. -
array$save_contextContext of the to-be-saved post.
Return: array
Filter the post data before saving the post.
Parameters:
-
array$post_dataPost data. -
array$save_contextContext of the to-be-saved post.
Return: array
Filter the to-be-synchronized post meta fields.
Parameters:
-
array$post_metaPost meta fields. -
array$save_contextContext of the to-be-saved post.
Return: array
Filter the quicklinks HTML.
Parameters:
-
string$htmlHTML output. -
string$typeQuicklinks type, 'links' or 'form'. -
array$$translatedArray of translated posts. -
string$selectionsSelections, 'option' or 'a' elements. -
string$positionQuicklinks position.
Return: string
Filter the redirect URL. You might add support for other types than singular posts and home here. If you return an empty string, the redirect will not happen. The result will be validated with esc_url().
Parameters:
-
string$urlRedirect URL. -
array$matchRedirect match.-
int$priorityLanguage priority. -
string$urlRemote URL. -
string$languageLanguage name. -
int$site_idRemote blog ID.
-
-
int$current_blog_idCurrent blog ID.
Return: string
Filter the visibility of the 'Translation completed' checkbox.
Parameters:
-
bool$show_checkboxShow the checkbox? -
array$contextPost context.-
int$post_idPost ID. -
bool$is_translatedIs the post translated?
-
Return: bool
Filter the to-be-duplicated tables.
Parameters:
-
string[]$tablesTable names. -
int[]$contextDuplication context.-
int$source_blog_idSource blog ID. -
int$new_blog_idTarget blog ID.
-
Return: string[]
Filter the default value of the 'Translate this post' checkbox.
Parameters:
-
bool$translateShould 'Translate this post' be checked by default?
Return: bool
Filter the meta box view callbacks.
Parameters:
-
array$callbacksArray of callback names or class-method arrays. -
WP_Post$postPost object. -
int$blog_idBlog ID.
Return: array
Filter the translations before they are used.
Parameters:
-
array$translationsTranslations. -
array$argumentsTranslation arguments.
Return: array