LLMS_Product::get_catalog_visibility()
Retrieve the product’s catalog visibility term.
Return Return
(string)
Source Source
File: includes/models/model.llms.product.php
public function get_catalog_visibility() { $terms = wp_get_post_terms( $this->get( 'id' ), 'llms_product_visibility' ); if ( $terms && is_array( $terms ) ) { $obj = $terms[0]; if ( isset( $obj->name ) ) { return $obj->name; } } return 'catalog_search'; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |