Plugin API

Registering custom shortcodes

To create your own shortcode, you should create two special functions. The first function will provide the plugin with information on the added shortcode. The second function will allow the…

Disabling built-in shortcodes

You can use the plugin API in order to remove default shortcodes. Use filter su/data/shortcodes to do that. Disabling all shortcodes To remove all shortcodes, you should simply remove all elements…

Actions, Filters, Options

Actions su/admin/css/originals/after Runs on custom CSS editor page, after the list of links to original style files su/assets/register Runs after registration of styles and scripts su/assets/enqueue Runs after enqueuing of…

Changing default values for specific attributes

Code in this article requires PHP version 5.3 or higher. The following snippet will set custom default values for the note_color and radius attributes of the 

Function reference: su_get_gallery_slides()

Creates an array of slides for a gallery (image gallery, slider/carousel, etc.), based on a simple and readable query string. This function is being used by the Image Carousel shortcode…

Modifying original shortcodes

Use su/data/shortcodes filter to modify original shortcodes. You can find default shortcodes in the /wp-content/plugins/shortcodes-ultimate/includes/shortcodes/ folder. Use the following code snippets in the functions.php of your theme. Example (modifying attributes) add_filter( ‘su/data/shortcodes’, ‘add_custom_button_style’ );/** * Filter…

How to disable the “Last used settings” preset

Last used settings is a service preset which is automatically created every time you insert a shortcode using the Insert shortcode tool. It stores the settings you used for the…