inc/term-sidebars.php

__construct()
Constructor
get_sidebar_taxonomies()

Return a list of taxonomies that term sidebars are enabled for

Filter:largo_get_sidebar_taxonomies
Returns:Array $f taxonomy slugs
display_fields()

Renders the form fields on the term’s edit page

Parameters:
  • $term (WP_Term) – The term for which the fields should be displayed.
Returns:

nothing

display_add_new_field()

Renders the form fields for the new form creation on the term listing paga

Parameters:
  • $taxonomy (string) – unused.
admin_enqueue_scripts()

Attach the Javascript and Stylesheets to the term edit page

Parameters:
  • $hook_suffix (string) – what page we’re running this on.
edit_terms()

Save the results from the term edit page

Filter:

edit_terms

Parameters:
  • $term_id (int|string) – the term ID.
  • $taxonomy (string) – the taxonomy of the term.