su_add_shortcode

The shortcodes-ultimate su add shortcode function.

Published Date - February 15, 2021

Description

Add a shortcode.

su_add_shortcode( $data, $replace );

Parameters

  1. $data

  2. $replace


Usage

The following example is for adding a hook callback.

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

// The input(s). 
$data = null;
$replace = true;

// NOTICE! Understand what this does before running.
$result = su_add_shortcode( $data, $replace );
            

Defined

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

shortcodes-ultimate/includes/functions-shortcodes.php

function su_add_shortcode( $data, $replace = true ) {
	return Shortcodes_Ultimate_Shortcodes::add( $data, $replace );
}