Timeline Block For Gutenberg 2.0.1 has 5 actions and 8 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.
// Run your own code when Timeline Block For Gutenberg fires an action
add_action( 'cpfm_register_notice', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Timeline Block For Gutenberg 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
-
/** * Final chance for a plugin to adjust localized data. */ apply_filters( "{$this->config->prefix()}_onboarding_script_data", $data, $this->config ); -
cpfm_environment
filter/** * Filter the shared CPFM environment snapshot. */ apply_filters( 'cpfm_environment', $env ); -
cpfm_register_notice
action/** * 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' ); -
cph_after_timeline_header
action/** * Fires immediately after the Timeline Addons global header. */ do_action( 'cph_after_timeline_header' ); -
cpo_onboarding_loaded
action/** * 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'] ); -
apply_filters( "{$config->prefix()}_onboarding_body_{$cpo_mode}", null, $config, $cpo_mode ); -
{$prefix}_onboarding_buckets
filterapply_filters( "{$prefix}_onboarding_buckets", array() ); -
{$prefix}_onboarding_events
filterapply_filters( "{$prefix}_onboarding_events", array( 'method_picked', 'cta_clicked', 'cta_failed', 'addon_install_clicked', 'video_played', 'substep_picked' ) ); -
apply_filters( "{$this->config->prefix()}_onboarding_labels", array(), $td ); -
do_action( "cpfm_after_opt_in_{$plugin_name}", $category ); -
do_action( "cpfm_after_opt_out_{$plugin_name}", $category ); -
ctlb_is_pro
filterapply_filters( 'ctlb_is_pro', false ); -
apply_filters( 'timeline-block_post_for_stylesheet', $this_post );
Generated from Timeline Block For Gutenberg'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: