jsm-show-term-meta

JSM's Show Term Meta on Term Editing Pages

View the Project on GitHub jsmoriss/jsm-show-term-meta

JSM's Show Term Metadata

Plugin NameJSM's Show Term Metadata
SummaryShow all term (categories, tags) meta in a metabox on term editing pages -- great plugin for developers or debugging issues with term meta.
Stable Version1.3.0
Requires PHP5.6 or newer
Requires WordPress4.4 or newer
Tested Up To WordPress5.6
Contributorsjsmoriss
LicenseGPLv3
Tags / Keywordsmeta, term meta, inspector, custom fields, debug, tools

Description

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

Installation

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

Frequently Asked Questions

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;
}