JSM's Show Term Metadata

Описание

Wondering about the term meta your theme and/or plugins might be creating?

Want to find the name of a specific term meta key?

Need some help debugging your term meta?

The JSM’s Show Term Metadata plugin displays all term (categories, tags) meta keys and their unserialized values in a metabox at the bottom of term editing pages.

There are no plugin settings — simply install and activate the plugin.

Term meta has been available since WordPress v4.4. Older plugins that supported «term meta» before WordPress v4.4 may not use the current WordPress term meta functions, preferring to use their own custom «term meta» solutions instead. This custom «term meta«, which is not stored in the WordPress term meta table, will not appear in the Term Metadata list. You can contact the author of those older plugins to request an update, which uses the current WordPress term meta functions, or hook the ‘jsm_stm_term_meta’ filter to merge the custom «term meta«. As an example, the Yoast SEO plugin still does not use the new term meta functions, while the WooCommerce and WPSSO plugins do.

Related Plugins

Установка

Automated Install

  1. Go to the wp-admin/ section of your website.
  2. Select the Plugins menu item.
  3. Select the Add New sub-menu item.
  4. In the Search box, enter the plugin name.
  5. Click the Search Plugins button.
  6. Click the Install Now link for the plugin.
  7. Click the Activate Plugin link.

Semi-Automated Install

  1. Download the plugin ZIP file.
  2. Go to the wp-admin/ section of your website.
  3. Select the Plugins menu item.
  4. Select the Add New sub-menu item.
  5. Click on Upload link (just under the Install Plugins page title).
  6. Click the Browse… button.
  7. Navigate your local folders / directories and choose the ZIP file you downloaded previously.
  8. Click on the Install Now button.
  9. Click the Activate Plugin link.

Часто задаваемые вопросы

Frequently Asked Questions

  • None.

Notes and Documentation

Developer Filters

An example to add Yoast SEO term meta to the «Term Metadata» metabox.

add_filter( 'jsm_stm_term_meta', 'add_yoast_seo_term_meta', 10, 2 );

function add_yoast_seo_term_meta( $term_meta, $term_obj ) {

    $tax_opts = get_option( 'wpseo_taxonomy_meta' );

    if ( isset( $tax_opts[ $term_obj->taxonomy ][ $term_obj->term_id ] ) ) {
        $term_meta[ 'wpseo_taxonomy_meta' ][] = $tax_opts[ $term_obj->taxonomy ][ $term_obj->term_id ];
    }

    return $term_meta;
}

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«JSM's Show Term Metadata» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«JSM's Show Term Metadata» переведён на 3 языка. Благодарим переводчиков за их работу.

Перевести «JSM's Show Term Metadata» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

Version Numbering

Version components: {major}.{minor}.{bugfix}[-{stage}.{level}]

  • {major} = Major structural code changes / re-writes or incompatible API changes.
  • {minor} = New functionality was added or improved in a backwards-compatible manner.
  • {bugfix} = Backwards-compatible bug fixes or small improvements.
  • {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release candidate).

Repositories

Changelog / Release Notes

Version 1.2.0 (2020/05/08)

  • New Features
    • None.
  • Improvements
    • None.
  • Bugfixes
    • None.
  • Developer Notes
    • Maintenance release — minor code formatting changes.
  • Requires At Least
    • PHP v5.6.
    • WordPress v4.4.