su_do_attribute

The shortcodes-ultimate su do attribute function.

Published Date - February 15, 2021

Description

Do shortcodes in attributes.

su_do_attribute( $value );

Parameters

  1. $value


Usage

The following example is for adding a hook callback.

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

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

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

Defined

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

shortcodes-ultimate/includes/functions-shortcodes.php

function su_do_attribute( $value ) {

	$value = str_replace( array( '{', '}' ), array( '[', ']' ), $value );
	$value = do_shortcode( $value );

	return $value;

}