Shortcake (Shortcode UI) icon
Content & Editing

Shortcake (Shortcode UI) hooks reference

  • By Daniel Bachhuber
  • v0.7.4
  • Updated

Shortcake (Shortcode UI) 0.7.4 has 6 actions and 6 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Shortcake (Shortcode UI) fires an action
add_action( 'register_shortcode_ui', function( $settings, $editor_id ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Shortcake (Shortcode UI) is about to use
add_filter( 'shortcode_ui_fields', function( $fields ) {
	// Change $fields here.
	return $fields;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • inc/class-shortcode-ui.php line 140 · used in 2 places
    /**
     * Register shortcode UI for shortcodes.
     */
    do_action( 'register_shortcode_ui', $settings, $editor_id );
  • inc/class-shortcode-ui.php line 340
    /**
     * Fires after shortcode UI assets have been enqueued.
     */
    do_action( 'enqueue_shortcode_ui' );
  • inc/class-shortcode-ui.php line 387
    /**
     * Fires after base shortcode UI templates have been loaded.
     */
    do_action( 'print_shortcode_ui_templates' );
  • inc/class-shortcode-ui.php line 461
    /**
     * Fires after shortcode is rendered in preview.
     */
    do_action( 'shortcode_ui_after_do_shortcode', $shortcode );
  • inc/class-shortcode-ui.php line 454
    /**
     * Fires before shortcode is rendered in preview.
     */
    do_action( 'shortcode_ui_before_do_shortcode', $shortcode );
  • inc/fields/class-shortcode-ui-fields.php line 97
    /**
     * Filter the available fields.
     */
    apply_filters( 'shortcode_ui_fields', $this->fields );
  • inc/class-shortcode-ui.php line 353
    /**
     * Fires after shortcode UI assets have been loaded for the editor.
     */
    do_action( 'shortcode_ui_loaded_editor' );
  • shortcode-ui.php line 97
    /**
     * Filter the Shortcode UI options for all registered shortcodes.
     */
    apply_filters( 'shortcode_ui_shortcode_args', $args, $shortcode_tag );
  • shortcode-ui.php line 108
    /**
     * Filter the Shortcode UI options for a specific registered shortcode.
     */
    apply_filters( "shortcode_ui_shortcode_args_{$shortcode_tag}", $args );
  • inc/class-shortcode-ui.php line 200
    /**
     * Filter the returned shortcode UI configuration parameters.
     */
    apply_filters( 'shortcode_ui_shortcodes', $this->shortcodes );
  • plugin_locale

    filter
    shortcode-ui.php line 66
    apply_filters( 'plugin_locale', $locale, $domain );
  • inc/fields/class-shortcode-ui-field-term-select.php line 152
    apply_filters( 'term_search_min_chars', 2, $taxonomy_type, $search );

Generated from Shortcake (Shortcode UI)'s GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: