跳到内容

Get terms name__like

v0.1

keesiemeijer · 2013年11月9日 上架

Get the terms by name that begin with the "name__like" parameter used by the WordPress function get_terms().

正在使用
10+
评分
5.0 / 5
累计下载
2,140
最近更新
2013年11月9日
1 条评价需要 WordPress 3.7+已测试到 3.7.41

贡献者

The “name_like” parameter was changed in WordPress 3.7 to match terms that contain the “name__like” string. Use this plugin or use the function from the plugin file in your own (child) theme if you want it to only match terms that begin with the “name__like” string as it was prior to 3.7.

This reverses the changes made in this trac ticket.
https://core.trac.wordpress.org/ticket/8214

The “search” parameter does almost exactly what the “name__like” parameter does now (in 3.7), the difference being it also searches in term slugs. Use both parameters (as it was before 3.7) to get the terms you want.
See: https://codex.wordpress.org/Function_Reference/get_terms#Parameters

Note: this plugin only reverses it on the front end of your website for WordPress versions 3.7 and up.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums