本文整理汇总了PHP中wpml_get_language_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP wpml_get_language_input_field函数的具体用法?PHP wpml_get_language_input_field怎么用?PHP wpml_get_language_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpml_get_language_input_field函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wpml_the_language_input_field
/**
* Echoes the value returned by \wpml_the_language_input_field
*
* @since 3.1.7.3
*/
function wpml_the_language_input_field()
{
echo wpml_get_language_input_field();
}
示例2: get_search_form_filter
/**
* Filter to add language field to WordPress search form
*
* @param string $form HTML code of search for before filtering
* @return string HTML code of search form
*/
function get_search_form_filter($form)
{
if (strpos($form, wpml_get_language_input_field()) === false) {
$form = str_replace("</form>", wpml_get_language_input_field() . "</form>", $form);
}
return $form;
}
示例3: get_search_form_filter
/**
* Filter to add language field to WordPress search form
*
* @param string $form HTML code of search for before filtering
* @return string HTML code of search form
*/
function get_search_form_filter($form)
{
if (strpos($form, wpml_get_language_input_field()) === false && WPML_LANGUAGE_NEGOTIATION_TYPE_PARAMETER === (int) $this->get_setting('language_negotiation_type')) {
$form = str_replace("</form>", wpml_get_language_input_field() . "</form>", $form);
}
return $form;
}