inc/term-meta.php

largo_get_term_meta_post()

Get the proxy post for a term

Parameters:
  • $taxnomy (string) – The taxonomy of the term for which you want to retrieve a term meta post
  • $term_id (int) – The ID of the term
Returns:

int $post_id The ID of the term meta post

Add the “Set Featured Media” button in the term edit page

Since:0.5.4
See:largo_term_featured_media_enqueue_post_editor
largo_term_featured_media_enqueue_post_editor()

Enqueue wordpress post editor on term edit page

Parameters:
  • $hook (string) – the page this is being called upon.
Since:

0.5.4

See:

largo_term_featured_media_button

Removes the embed-code, video and gallery media types from the term featured media editor

Parameters:
  • $types (array) – array of media types that can be used with the featured media editor
Since:

0.5.4

Global:

$post $sed to determine whether or not this button is being called on a post or on something else.

largo_add_term_meta()

Add meta data to a term

Parameters:
  • $taxonomy (string) –
  • $term_id (int) –
  • $meta_key (string) –
  • $meta_value (mixed) –
  • $unique (bool) –
largo_delete_term_meta()

Delete meta data to a term

Parameters:
  • $taxonomy (string) –
  • $term_id (int) –
  • $meta_key (string) –
  • $meta_value (mixed) –
largo_get_term_meta()

Get meta data to a term

Parameters:
  • $taxonomy (string) –
  • $term_id (int) –
  • $meta_key (string) –
  • $single (bool) –
largo_update_term_meta()

Update meta data to a term

Parameters:
  • $taxonomy (string) –
  • $term_id (int) –
  • $meta_key (string) –
  • $meta_value (mixed) –
  • $prev_value (mixed) –