File "functions.php"

Full Path: /home/shadsolw/public_html/wp-content/plugins/edge-core/shortcodes/link-section/functions.php
File size: 1.08 KB
MIME-type: text/x-php
Charset: utf-8

<?php

if ( ! function_exists( 'edgtf_core_add_link_section_shortcodes' ) ) {
    function edgtf_core_add_link_section_shortcodes( $shortcodes_class_name ) {
        $shortcodes = array(
            'EdgeCore\CPT\Shortcodes\LinkSection\LinkSection'
        );

        $shortcodes_class_name = array_merge( $shortcodes_class_name, $shortcodes );

        return $shortcodes_class_name;
    }

    add_filter( 'edgtf_core_filter_add_vc_shortcode', 'edgtf_core_add_link_section_shortcodes' );
}

if ( ! function_exists( 'edgtf_core_set_link_section_icon_class_name_for_vc_shortcodes' ) ) {
    /**
     * Function that set custom icon class name for  link section shortcode to set our icon for Visual Composer shortcodes panel
     */
    function edgtf_core_set_link_section_icon_class_name_for_vc_shortcodes( $shortcodes_icon_class_array ) {
        $shortcodes_icon_class_array[] = '.icon-wpb-link-section';

        return $shortcodes_icon_class_array;
    }

    add_filter( 'edgtf_core_filter_add_vc_shortcodes_custom_icon_class', 'edgtf_core_set_link_section_icon_class_name_for_vc_shortcodes' );
}