cloggier
↑
/wp-content/plugins
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
assets/
cloggier
marsupiataab
build/
cloggier
marsupiataab
include/
cloggier
marsupiataab
languages/
cloggier
marsupiataab
src/
cloggier
marsupiataab
vendor/
cloggier
marsupiataab
views/
cloggier
marsupiataab
aliases.php
2,764 B
cloggier
marsupiataab
license.txt
35,147 B
cloggier
marsupiataab
readme.txt
11,799 B
cloggier
marsupiataab
tag-groups.php
9,093 B
cloggier
marsupiataab
<?php /** * Tag Groups Premium * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * @package Tag Groups Premium * * @author Christoph Amthor * @copyright 2019 Christoph Amthor (@ Chatty Mango, chattymango.com) * @license see official vendor website * * @since 1.19.0 */ /** * Aliases for backwards compatibility and convenience * */ if ( !function_exists( 'tag_groups_cloud' ) && class_exists( 'TagGroups_Shortcode_Tabs' ) ) { /** * * Wrapper for the static method tag_groups_cloud * * @param array $atts * @param bool $return_array * @return string */ function tag_groups_cloud( $atts = array(), $return_array = false ) { return ( new TagGroups_Shortcode_Tabs() )->tag_groups_cloud( $atts, $return_array ); } } if ( !function_exists( 'tag_groups_accordion' ) && class_exists( 'TagGroups_Shortcode_Accordion' ) ) { /** * * Wrapper for the static method tag_groups_accordion * * @param array $atts * @return string */ function tag_groups_accordion( $atts = array() ) { return ( new TagGroups_Shortcode_Accordion() )->tag_groups_accordion( $atts ); } } if ( !function_exists( 'post_in_tag_group' ) ) { /** * Checks if the post with $post_id has a tag that is in the tag group with $tag_group_id. * * @param int $post_id * @param int $tag_group_id * @return boolean */ function post_in_tag_group( $post_id, $tag_group_id ) { global $tag_groups_premium_fs_sdk ; $tag_group_taxonomies = TagGroups_Taxonomy::get_enabled_taxonomies(); $tags = array(); foreach ( $tag_group_taxonomies as $tag_group_taxonomy ) { $tags_tax = get_the_terms( $post_id, $tag_group_taxonomy ); if ( is_array( $tags_tax ) ) { $tags = array_merge( $tags, $tags_tax ); } elseif ( false === $tags_tax ) { return false; } } if ( $tags ) { foreach ( $tags as $tag ) { $tg_term = new TagGroups_Term( $tag ); if ( $tg_term->has_group( $tag_group_id ) ) { return true; } } } return false; } }
cloggier