FancyTube icon
Media, Galleries & Sliders

FancyTube hooks reference

  • By Pluginic
  • v2.4.2
  • Updated

FancyTube 2.4.2 has 8 actions and 22 filters, read directly from its source code on Nov 18, 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 FancyTube fires an action
add_action( 'wpgp_enqueue', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value FancyTube is about to use
add_filter( 'wpgp_fa4', function( $value ) {
	// Change $value here.
	return $value;
}, 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

  • admin/wpgp-framework/classes/setup.class.php line 574 · used in 3 places
    apply_filters( 'wpgp_fa4', false );
  • admin/wpgp-framework/classes/admin-options.class.php line 95 · used in 2 places
    apply_filters( "wpgp_{$this->unique}_args", wp_parse_args( $params['args'], $this->args ), $this );
  • admin/wpgp-framework/classes/admin-options.class.php line 380 · used in 2 places
    apply_filters( "wpgp_{$this->unique}_save", $data, $this );
  • admin/wpgp-framework/classes/admin-options.class.php line 388 · used in 2 places
    do_action( "wpgp_{$this->unique}_save_after", $data, $this );
  • admin/wpgp-framework/classes/admin-options.class.php line 382 · used in 2 places
    do_action( "wpgp_{$this->unique}_save_before", $data, $this );
  • admin/wpgp-framework/classes/admin-options.class.php line 415 · used in 2 places
    do_action( "wpgp_{$this->unique}_saved", $data, $this );
  • admin/wpgp-framework/classes/admin-options.class.php line 96 · used in 2 places
    apply_filters( "wpgp_{$this->unique}_sections", $params['sections'], $this );
  • includes/class-wpgp-youtube-gallery-cpt.php line 93
    apply_filters( "{self::PAGE_ID}_menu_position", 25 );
  • includes/class-wpgp-youtube-gallery-cpt.php line 84
    apply_filters( "{self::PAGE_ID}_post_type_args", array( 'labels' => $labels, 'public' => false, 'hierarchical' => false, 'exclude_from_search' => true, 'show_ui' => true, 'show_in_admin_bar' => false, 'menu_position' => apply_filters( self::PAGE_ID . '_menu_position', 25 ), 'menu_icon' => 'dashicons-video-alt3', 'rewrite' => false, 'query_var' => false, 'imported' => true, 'supports' => array( 'title' ), ) );
  • includes/class-wpgp-youtube-gallery-cpt.php line 65
    apply_filters( "{self::PAGE_ID}_post_type_labels", array( 'name' => esc_html_x( 'Manage Galleries', 'wpgp-youtube-gallery' ), 'singular_name' => esc_html_x( 'Galleries', 'wpgp-youtube-gallery' ), 'add_new' => esc_html__( 'Add New', 'wpgp-youtube-gallery' ), 'add_new_item' => esc_html__( 'Add New Gallery', 'wpgp-youtube-gallery' ), 'edit_item' => esc_html__( 'Edit Galleries', 'wpgp-youtube-gallery' ), 'new_item' => esc_html__( 'New Galleries', '... );
  • admin/wpgp-framework/classes/abstract.class.php line 21
    apply_filters( "wpgp_{$this->unique}_output_css", WPGP::$css, $this );
  • admin/wpgp-framework/functions/actions.php line 177
    apply_filters( 'wpgp_chosen_ajax_capability', 'manage_options' );
  • admin/wpgp-framework/classes/setup.class.php line 601
    apply_filters( 'wpgp_color_palette', array() );
  • admin/wpgp-framework/functions/customize.php line 94
    apply_filters( 'wpgp_customize_complex_fields', array( 'accordion', 'background', 'border', 'button_set', 'checkbox', 'color_group', 'date', 'dimensions', 'fieldset', 'group', 'image_select', 'link', 'link_color', 'media', 'palette', 'repeater', 'sortable', 'sorter', 'spacing', 'switcher', 'tabbed', 'typography' ) );
  • admin/wpgp-framework/classes/setup.class.php line 629
    do_action( 'wpgp_enqueue' );
  • admin/wpgp-framework/classes/setup.class.php line 562
    apply_filters( 'wpgp_enqueue_assets', self::$enqueue );
  • admin/wpgp-framework/functions/actions.php line 25
    apply_filters( 'wpgp_field_icon_add_icons', wpgp_get_default_icons() );
  • admin/wpgp-framework/fields/typography/typography.php line 110
    apply_filters( 'wpgp_field_typography_backup_font_family', array( 'Arial, Helvetica, sans-serif', "'Arial Black', Gadget, sans-serif", "'Comic Sans MS', cursive, sans-serif", 'Impact, Charcoal, sans-serif', "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", 'Tahoma, Geneva, sans-serif', "'Trebuchet MS', Helvetica, sans-serif'", 'Verdana, Geneva, sans-serif', "'Courier New', Courier, monospace", "'Lucida Console', Monaco, monospace", 'Georgia, serif'... );
  • admin/wpgp-framework/fields/typography/typography.php line 384
    apply_filters( 'wpgp_field_typography_customwebfonts', array() );
  • admin/wpgp-framework/fields/typography/typography.php line 424
    apply_filters( 'wpgp_field_typography_defaultstyles', array( 'normal', 'italic', '700', '700italic' ) );
  • admin/wpgp-framework/fields/typography/typography.php line 426
    apply_filters( 'wpgp_field_typography_googlestyles', array( '100' => 'Thin 100', '100italic' => 'Thin 100 Italic', '200' => 'Extra-Light 200', '200italic' => 'Extra-Light 200 Italic', '300' => 'Light 300', '300italic' => 'Light 300 Italic', 'normal' => 'Normal 400', 'italic' => 'Normal 400 Italic', '500' => 'Medium 500', '500italic' => 'Medium 500 Italic', '600' => 'Semi-Bold 600', '600italic' => 'Semi-Bold 600 Italic', '700' => 'Bold 700', '700i... );
  • admin/wpgp-framework/fields/typography/typography.php line 418
    apply_filters( 'wpgp_field_typography_googlewebfonts', wpgp_get_google_fonts() );
  • admin/wpgp-framework/fields/typography/typography.php line 395
    apply_filters( 'wpgp_field_typography_safewebfonts', array( 'Arial', 'Arial Black', 'Helvetica', 'Times New Roman', 'Courier New', 'Tahoma', 'Verdana', 'Impact', 'Trebuchet MS', 'Comic Sans MS', 'Lucida Console', 'Lucida Sans Unicode', 'Georgia, serif', 'Palatino Linotype', ) );
  • admin/wpgp-framework/fields/typography/typography.php line 450
    apply_filters( 'wpgp_field_typography_webfonts', $webfonts );
  • admin/wpgp-framework/classes/setup.class.php line 404
    apply_filters( 'wpgp_fields', array( 'accordion', 'background', 'backup', 'border', 'button_set', 'callback', 'checkbox', 'code_editor', 'color', 'color_group', 'content', 'date', 'datetime', 'dimensions', 'fieldset', 'gallery', 'group', 'heading', 'icon', 'image_select', 'link', 'link_color', 'map', 'media', 'notice', 'number', 'palette', 'radio', 'repeater', 'select', 'slider', 'sortable', 'sorter', 'spacing', 'spinner', ... );
  • admin/wpgp-framework/classes/setup.class.php line 68
    do_action( 'wpgp_init' );
  • admin/wpgp-framework/classes/setup.class.php line 248
    do_action( 'wpgp_loaded' );
  • admin/wpgp-framework/classes/admin-options.class.php line 719
    do_action( 'wpgp_options_after' );
  • admin/wpgp-framework/classes/admin-options.class.php line 543
    do_action( 'wpgp_options_before' );
  • admin/wpgp-framework/classes/setup.class.php line 329
    apply_filters( 'wpgp_override', 'wpgp-override' );

Generated from FancyTube's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

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