Cartflows_Step_Post_Type::add_terms( string $taxonomy = '', array $terms = array() )

Add Terms for Taxonomy.


Description

=> Example.

$taxonomy = ‘{taxonomy}’; $terms = array( array( ‘name’ => ‘Landing’, ‘slug’ => ‘landing’, ), array( ‘name’ => ‘Checkout’, ‘slug’ => ‘checkout’, ), );

self::add_terms( $taxonomy, $terms );


Parameters

$taxonomy

(string) (Optional) Taxonomy Name.

Default value: ''

$terms

(array) (Optional) Terms list.

Default value: array()


Return

(void)


Source

File: modules/flow/classes/class-cartflows-step-post-type.php


			


Changelog

Changelog
Version Description
1.0.0 Introduced.