su_get_css_class

The shortcodes-ultimate su get css class function.

Published Date - February 15, 2021

Description

su_get_css_class( $atts );

Parameters

  1. $atts


Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_get_css_class' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/functions-helpers.php';
}

// The input(s). 
$atts = null;

// NOTICE! Understand what this does before running.
$result = su_get_css_class( $atts );
            

Defined

The function is defined in the following location(s).

shortcodes-ultimate/includes/functions-helpers.php

function su_get_css_class( $atts ) {
		return $atts['class'] ? ' ' . trim( $atts['class'] ) : '';
	}