Cool Timeline (Horizontal & Vertical Timeline) icon
Utilities

Cool Timeline (Horizontal & Vertical Timeline) hooks reference

  • By Narinder Singh
  • v5.0.1 New
  • Updated

Cool Timeline (Horizontal & Vertical Timeline) 5.0.1 has 17 actions and 42 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 Cool Timeline (Horizontal & Vertical Timeline) fires an action
add_action( 'cpfm_register_notice', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Cool Timeline (Horizontal & Vertical Timeline) is about to use
add_filter( 'cpfm_environment', function( $env ) {
	// Change $env here.
	return $env;
}, 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/cp-onboarding/framework/src/class-framework.php line 258
    /**
     * Final chance for a plugin to adjust localized data.
     */
    apply_filters( "{$this->config->prefix()}_onboarding_script_data", $data, $this->config );
  • admin/cpfm-feedback/class-cpfm-environment.php line 101
    /**
     * Filter the shared CPFM environment snapshot.
     */
    apply_filters( 'cpfm_environment', $env );
  • admin/cpfm-feedback/cpfm-feedback-notice.php line 112
    /**
     * Allow other plugins to register notices dynamically. Example usage in other
     * plugins: add_action('cpfm_register_notice', function() {
     * CPFM_Feedback_Notice::cpfm_register_notice('events', [ 'title'   => 'Events
     * Plugin Notice', 'message' => 'This is a events dashboard setup notice.',
     * 'pages'   => ['dashboard'], ]); });
     */
    do_action( 'cpfm_register_notice' );
  • admin/timeline-global-header.php line 421
    /**
     * Fires immediately after the Timeline Addons global header.
     */
    do_action( 'cph_after_timeline_header' );
  • admin/cp-onboarding/loader.php line 96
    /**
     * Fires once the framework is loaded and its classes are available. Plugins
     * hook here to instantiate the framework with their own config.
     */
    do_action( 'cpo_onboarding_loaded', $winner['version'] );
  • admin/codestar-framework/classes/admin-options.class.php line 97 · used in 9 places
    apply_filters( "csf_{$this->unique}_args", wp_parse_args( $params['args'], $this->args ), $this );
  • admin/codestar-framework/classes/admin-options.class.php line 397 · used in 8 places
    do_action( "csf_{$this->unique}_save_before", $data, $this );
  • admin/codestar-framework/classes/admin-options.class.php line 99 · used in 8 places
    apply_filters( "csf_{$this->unique}_sections", $params['sections'], $this );
  • admin/codestar-framework/classes/admin-options.class.php line 394 · used in 7 places
    apply_filters( "csf_{$this->unique}_save", $data, $this );
  • admin/codestar-framework/classes/admin-options.class.php line 404 · used in 7 places
    do_action( "csf_{$this->unique}_save_after", $data, $this );
  • admin/codestar-framework/classes/admin-options.class.php line 433 · used in 7 places
    do_action( "csf_{$this->unique}_saved", $data, $this );
  • csf_fa4

    filter
    admin/codestar-framework/classes/setup.class.php line 584 · used in 3 places
    apply_filters( 'csf_fa4', false );
  • the_content

    filter
    includes/shortcodes/class-ctl-helpers.php line 188 · used in 2 places
    apply_filters( 'the_content', $excerpt );
  • admin/cp-onboarding/framework/views/onboarding-page.php line 204
    apply_filters( "{$config->prefix()}_onboarding_body_{$cpo_mode}", null, $config, $cpo_mode );
  • admin/cp-onboarding/framework/src/class-telemetry.php line 63
    apply_filters( "{$prefix}_onboarding_buckets", array() );
  • admin/cp-onboarding/framework/src/class-telemetry.php line 58
    apply_filters( "{$prefix}_onboarding_events", array( 'method_picked', 'cta_clicked', 'cta_failed', 'addon_install_clicked', 'video_played', 'substep_picked' ) );
  • admin/cp-onboarding/framework/src/class-framework.php line 217
    apply_filters( "{$this->config->prefix()}_onboarding_labels", array(), $td );
  • includes/shortcodes/class-ctl-helpers.php line 255
    apply_filters( 'cool_timeline_pagination_args', $pagination_args, $paged );
  • includes/shortcodes/class-ctl-loop-helpers.php line 379
    apply_filters( 'cool_timeline_story_img_size', $image_size );
  • admin/cpfm-feedback/cpfm-feedback-notice.php line 286
    do_action( "cpfm_after_opt_in_{$plugin_name}", $category );
  • admin/cpfm-feedback/cpfm-feedback-notice.php line 291
    do_action( "cpfm_after_opt_out_{$plugin_name}", $category );
  • admin/codestar-framework/classes/widget-options.class.php line 53
    apply_filters( "csf_{$this->unique}_control_ops", $control_ops, $this );
  • admin/codestar-framework/classes/abstract.class.php line 23
    apply_filters( "csf_{$this->unique}_output_css", CSF::$css, $this );
  • admin/codestar-framework/classes/widget-options.class.php line 51
    apply_filters( "csf_{$this->unique}_widget_ops", $widget_ops, $this );
  • admin/codestar-framework/functions/actions.php line 210
    apply_filters( 'csf_chosen_ajax_capability', 'manage_options' );
  • admin/codestar-framework/classes/setup.class.php line 614
    apply_filters( 'csf_color_palette', array() );
  • admin/codestar-framework/functions/customize.php line 99
    apply_filters( 'csf_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' ) );
  • csf_enqueue

    action
    admin/codestar-framework/classes/setup.class.php line 646
    do_action( 'csf_enqueue' );
  • admin/codestar-framework/classes/setup.class.php line 571
    apply_filters( 'csf_enqueue_assets', self::$enqueue );
  • admin/codestar-framework/functions/actions.php line 37
    apply_filters( 'csf_field_icon_add_icons', csf_get_default_icons() );
  • admin/codestar-framework/fields/typography/typography.php line 110
    apply_filters( 'csf_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/codestar-framework/fields/typography/typography.php line 366
    apply_filters( 'csf_field_typography_customwebfonts', array() );
  • admin/codestar-framework/fields/typography/typography.php line 405
    apply_filters( 'csf_field_typography_defaultstyles', array( 'normal', 'italic', '700', '700italic' ) );
  • admin/codestar-framework/fields/typography/typography.php line 408
    apply_filters( 'csf_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/codestar-framework/fields/typography/typography.php line 400
    apply_filters( 'csf_field_typography_googlewebfonts', csf_get_google_fonts() );
  • admin/codestar-framework/fields/typography/typography.php line 379
    apply_filters( 'csf_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/codestar-framework/fields/typography/typography.php line 430
    apply_filters( 'csf_field_typography_webfonts', $webfonts );
  • csf_fields

    filter
    admin/codestar-framework/classes/setup.class.php line 413
    apply_filters( 'csf_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', ... );
  • csf_init

    action
    admin/codestar-framework/classes/setup.class.php line 70
    do_action( 'csf_init' );
  • csf_loaded

    action
    admin/codestar-framework/classes/setup.class.php line 254
    do_action( 'csf_loaded' );
  • admin/codestar-framework/classes/admin-options.class.php line 760
    do_action( 'csf_options_after' );
  • admin/codestar-framework/classes/admin-options.class.php line 565
    do_action( 'csf_options_before' );
  • csf_override

    filter
    admin/codestar-framework/classes/setup.class.php line 336
    apply_filters( 'csf_override', 'csf-override' );
  • admin/codestar-framework/views/welcome.php line 19
    apply_filters( 'csf_welcome_page', true );
  • csf_wp_editor

    filter
    admin/codestar-framework/fields/wp_editor/wp_editor.php line 95
    apply_filters( 'csf_wp_editor', array( 'tinymce' => array( 'wp_skip_init' => true ), ) );
  • admin/cp-onboarding/class-ctl-demo-generator.php line 342
    apply_filters( 'ctl_bricks_onboarding_force_new_page', false );
  • admin/cp-onboarding/class-ctl-demo-generator.php line 131
    apply_filters( 'ctl_demo_allow_recreate', false );
  • ctl_demo_data

    filter
    admin/cp-onboarding/class-ctl-demo-generator.php line 65
    apply_filters( 'ctl_demo_data', $data );
  • cooltimeline.php line 552
    do_action( 'ctl_display_admin_notices' );
  • cooltimeline.php line 429
    do_action( 'ctl_extra_data_update' );
  • admin/ctl-timeline-header.php line 85
    apply_filters( 'ctl_global_header_heading', $default_heading );
  • includes/shortcodes/class-ctl-loop-helpers.php line 465
    apply_filters( 'ctl_story_year', $story_year_label );
  • includes/shortcodes/class-ctl-shortcode.php line 174
    apply_filters( 'ctp_story_query_args', $query_args, $attributes );
  • admin/cp-onboarding/onboarding-config.php line 603
    apply_filters( 'divi_ghoster_ghosted_theme', '' );
  • media_buttons

    action
    admin/codestar-framework/fields/wp_editor/wp_editor.php line 79
    do_action( 'media_buttons' );
  • includes/cool-timeline-block/src/init.php line 210
    apply_filters( 'timeline-block_post_for_stylesheet', $this_post );
  • admin/cp-onboarding/onboarding-config.php line 1313
    apply_filters( 'tmdivi_onboarding_force_new_page', false );
  • admin/cp-onboarding/onboarding-config.php line 1263
    apply_filters( 'twae_onboarding_force_new_page', false );
  • admin/codestar-framework/functions/walker.php line 22
    do_action( 'wp_nav_menu_item_custom_fields', $item->ID, $item, $depth, $args );

Generated from Cool Timeline (Horizontal & Vertical Timeline)'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: