Under Construction icon
Admin & Maintenance

Under Construction hooks reference

  • By WebFactory
  • v5.83
  • Updated

Under Construction 5.83 has 1 actions and 9 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 Under Construction fires an action
add_action( 'cache_enabler_clear_complete_cache', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Under Construction is about to use
add_filter( 'ucp_show_admin_bar', 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

  • under-construction.php line 950 · used in 2 places
    apply_filters( 'ucp_show_admin_bar', true );
  • under-construction.php line 1307
    do_action( 'cache_enabler_clear_complete_cache' );
  • under-construction.php line 666
    apply_filters( 'ucp_get_template', $template, $vars, $options );
  • under-construction.php line 655
    apply_filters( 'ucp_get_template_vars', $vars, $template_id, $options );
  • ucp_head

    filter
    under-construction.php line 594
    apply_filters( 'ucp_head', $out, $options, $template_id );
  • under-construction.php line 678
    apply_filters( 'ucp_is_construction_mode_enabled', null, $options );
  • under-construction.php line 497
    apply_filters( 'ucp_parse_vars', $string, $org_string, $vars );
  • ucp_tabs

    filter
    under-construction.php line 2110
    apply_filters( 'ucp_tabs', $tabs );
  • ucp_themes

    filter
    under-construction.php line 1797
    apply_filters( 'ucp_themes', $themes );

Generated from Under Construction'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: