su_parse_shortcode_atts

The shortcodes-ultimate su parse shortcode atts function.

Published Date - February 15, 2021

Description

Parse shortcode attribute values.

su_parse_shortcode_atts( $id, $atts, $extra );

Parameters

  1. $id

  2. $atts

  3. $extra


Usage

The following example is for adding a hook callback.

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

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

// NOTICE! Understand what this does before running.
$result = su_parse_shortcode_atts( $id, $atts, $extra );
            

Defined

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

shortcodes-ultimate/includes/functions-shortcodes.php

function su_parse_shortcode_atts( $id, $atts, $extra = array() ) {

	return shortcode_atts(
		array_merge( su_get_shortcode_defaults( $id ), $extra ),
		$atts,
		$id
	);

}