su/generator/actions

The shortcodes-ultimate su/generator/actions hook.

Published Date - February 15, 2021

Description

$actions = apply_filters( 'su/generator/actions', array(
				'insert' => ' ' . __( 'Insert shortcode', 'shortcodes-ultimate' ) . '',
				'preview' => ' ' . __( 'Live preview', 'shortcodes-ultimate' ) . ''
			) );

Parameters

  1. $array; class=button button-primary button-large su-generator-insert> . __ . , preview => . __ . )


Usage

The following example is for adding a hook callback.

// define the su/generator/actions callback 
function custom_su_generator_actions( $array; class=button button-primary button-large su-generator-insert>  . __ . , preview =>   . __ . ) ){ 
   //custom code here
    return $array; class=button button-primary button-large su-generator-insert>  . __ . , preview =>   . __ . )
} 

//add the action 
add_filter('su/generator/actions', 'custom_su/generator/actions', 10, 1)

Defined

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

shortcodes-ultimate/inc/core/generator.php

$actions = apply_filters( 'su/generator/actions', array(
				'insert' => '<a href="javascript:void(0);" class="button button-primary button-large su-generator-insert"><i class="sui sui-check"></i> ' . __( 'Insert shortcode', 'shortcodes-ultimate' ) . '</a>',
				'preview' => '<a href="javascript:void(0);" class="button button-large su-generator-toggle-preview"><i class="sui sui-eye"></i> ' . __( 'Live preview', 'shortcodes-ultimate' ) . '</a>'
			) );