inc/term-icons.php¶
-
class
Largo_Term_Icons
¶ Creates $largo[‘term-icons’] using the Largo_Term_Icons class defined herein
Display the fields for selecting icons for terms in the “post-type” taxonomy
global: $largo -
get_icons_config
()¶ Retrieves the Fontello config.json information about the glyphs
Global: $wp_filesystem
-
display_fields
()¶ Renders the form fields on the term edit page
Parameters: - $term (object) – A taxonomy term
-
admin_enqueue_scripts
()¶ Attach the Javascript and Stylesheets to the term edit page
Parameters: - $hook_suffix (string) –
Global: LARGO_DEBUG
Global: $_REQUEST
-
edit_terms
()¶ Save the results from the term edit page
Global: $post
Parameters: - $term_id (string) –
-
get_icon
()¶ Retrieve the icon information for a term
Parameters: - $taxonomy_or_term (term|string) –
- the term object of the taxonomy name
- $term_id (int) –
- the term id when the first parameter is the taxonomy name
- $taxonomy_or_term (term|string) –
-
the_icon
()¶ Output the icon for a term
Parameters: - $taxonomy_or_term (term|string) –
- the term object of the taxonomy name
- $term_id (int) –
- the term id when the first parameter is the taxonomy name
- $tag (string) –
- the HTML element that shall be used for the icon
- $taxonomy_or_term (term|string) –
-