su_get_shortcode

The shortcodes-ultimate su get shortcode function.

Published Date - February 15, 2021

Description

Get specific shortcode by ID.

su_get_shortcode( $id );

Parameters

  1. $id


Usage

The following example is for adding a hook callback.

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

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

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

Defined

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

shortcodes-ultimate/includes/functions-shortcodes.php

function su_get_shortcode( $id ) {
	return Shortcodes_Ultimate_Shortcodes::get( $id );
}