LLMS_Post_Types::register_taxonomy( string $name, string|array $object, array $data )

Register a custom post type taxonomy Automatically checks for duplicates and filters data


Parameters Parameters

$name

(string) (Required) Taxonomy name.

$object

(string|array) (Required) Post type object(s) to associate the taxonomy with.

$data

(array) (Required) Taxonomy data.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.post-types.php

					'exclude_from_search'       => false,
					'show_in_admin_all_list'    => true,
					'show_in_admin_status_list' => true,
					/* translators: %s: Refuned count, %s: Refunded count. */
					'label_count'               => _n_noop( 'Refunded <span class="count">(%s)</span>', 'Refunded <span class="count">(%s)</span>', 'lifterlms' ),
				),
				'llms-txn-succeeded' => array(
					'label'                     => _x( 'Succeeded', 'Transaction status', 'lifterlms' ),
					'public'                    => true,
					'exclude_from_search'       => false,
					'show_in_admin_all_list'    => true,
					'show_in_admin_status_list' => true,

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.