Support » Plugin: WP Term Colors » Works well with WP's new termmeta table

  • I needed to save colors for terms, and found that @jjj had already done the work. Accessing the saved colors is pretty straightforward using the new (WP 4.4 or newer) built-in utility function:
    $color = get_term_meta( $term_id, 'color', true );

    The terms are saved in hex format (#eeee22) so are ready to use once retrieved.

    Thanks @jjj.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Works well with WP's new termmeta table’ is closed to new replies.