CC Child Pages icon
Page Builders & Blocks

CC Child Pages hooks reference

  • By caterhamcomputing
  • v2.1.2
  • Updated

CC Child Pages 2.1.2 has 5 actions and 44 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 CC Child Pages fires an action
add_action( 'cc_child_pages/elementor/after_register_controls', function( $object ) {
	// Your code runs here.
}, 10, 1 );

// Change a value CC Child Pages is about to use
add_filter( 'cc_child_pages/elementor/shortcode_atts', function( $atts, $settings, $object ) {
	// Change $atts here.
	return $atts;
}, 10, 3 );

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

  • includes/elementor/widgets/class-child-pages-widget.php line 419
    /**
     * Allow extensions (eg Pro) to register controls after the core widget
     * controls.
     */
    do_action( 'cc_child_pages/elementor/after_register_controls', $this );
  • includes/elementor/widgets/class-child-pages-widget.php line 53
    /**
     * Allow extensions (eg Pro) to register controls before the core widget
     * controls.
     */
    do_action( 'cc_child_pages/elementor/before_register_controls', $this );
  • includes/elementor/widgets/class-child-pages-widget.php line 562
    /**
     * Allow extensions (eg Pro) to modify the shortcode attributes produced by
     * this widget.
     */
    apply_filters( 'cc_child_pages/elementor/shortcode_atts', $atts, $settings, $this );
  • includes/elementor/widgets/class-child-pages-widget.php line 32
    /**
     * Filter the Elementor widget title.
     */
    apply_filters( 'cc_child_pages/elementor/widget_title', $title, $this );
  • includes/ccchildpages.php line 1853
    apply_filters( 'cc_child_pages_editor_skins', $default_skins );
  • includes/ccchildpages.php line 128
    apply_filters( 'cc_child_pages_lazy_load', strtolower( $a['lazy_load'] ) === 'true' );
  • includes/ccchildpages.php line 1020
    apply_filters( 'ccchildpages_after_shortcode', '', $a );
  • includes/ccchildpages_widget.php line 104
    apply_filters( 'ccchildpages_after_widget', $args['after_widget'], $args, $instance );
  • includes/ccchildpages.php line 125
    apply_filters( 'ccchildpages_attributes', $a );
  • includes/ccchildpages.php line 1020
    apply_filters( 'ccchildpages_before_shortcode', '', $a );
  • includes/ccchildpages_widget.php line 98
    apply_filters( 'ccchildpages_before_widget', $args['before_widget'], $args, $instance );
  • includes/ccchildpages.php line 1224
    apply_filters( 'ccchildpages_block_slugs', array( 'caterhamcomputing/cc-child-pages', 'cc/child-pages', ) );
  • includes/ccchildpages.php line 946
    apply_filters( 'ccchildpages_child_list_template', '<div class="ccsubpages">{{child_list_title}}<ul>{{child_list}}</ul></div>', $a );
  • includes/ccchildpages.php line 942
    apply_filters( 'ccchildpages_child_list_title', '<h4 class="ccsubpages_title">{{subpage_title}}</h4>', $a );
  • includes/ccchildpages.php line 365
    apply_filters( 'ccchildpages_css_version', $css_version_class, $a );
  • includes/ccchildpages.php line 1308
    apply_filters( 'ccchildpages_dashboard_dismiss_capability', 'edit_pages' );
  • includes/ccchildpages.php line 1254
    apply_filters( 'ccchildpages_dashboard_parent_query_args', array( 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => 5, 'orderby' => 'modified', 'order' => 'DESC', 'fields' => 'ids', ) );
  • includes/ccchildpages.php line 72
    apply_filters( 'ccchildpages_defaults', array( 'id' => get_the_ID(), 'page_ids' => '', 'posts_per_page' => -1, 'limit' => -1, 'page' => -1, 'cols' => '', 'depth' => '1', 'exclude' => '', 'exclude_tree' => '', 'skin' => 'simple', 'class' => '', 'orderby' => 'menu_order', 'order' => 'ASC', 'link_titles' => 'false', 'title_link_class' => 'ccpage_title_link', 'hide_title' => 'false', 'hide_more' => 'false', 'hide_excerpt' => 'false', 'sh... );
  • includes/ccchildpages.php line 851
    apply_filters( 'ccchildpages_excerpt_template', '<div class="ccpages_excerpt">{{page_excerpt}}</div>', $a );
  • build/cc-child-pages/render.php line 21
    apply_filters( 'ccchildpages_inline_vars_map', $extra_styles, $attributes );
  • includes/ccchildpages.php line 368
    apply_filters( 'ccchildpages_inner_template', '<div class="ccchildpage {{page_class}}">{{title_tag}}{{meta}}{{thumbnail}}{{excerpt}}{{more}}</div>', $a );
  • includes/ccchildpages.php line 400
    apply_filters( 'ccchildpages_list_pages_args', $args, $a );
  • includes/ccchildpages.php line 1384
    apply_filters( 'ccchildpages_menu_capability', 'manage_options' );
  • includes/ccchildpages.php line 1383
    apply_filters( 'ccchildpages_menu_function', array( 'ccchildpages', 'options_page' ) );
  • includes/ccchildpages.php line 1386
    apply_filters( 'ccchildpages_menu_icon', 'dashicons-screenoptions' );
  • includes/ccchildpages.php line 1380
    apply_filters( 'ccchildpages_menu_page_title', __( 'CC Child Pages', 'cc-child-pages' ) );
  • includes/ccchildpages.php line 1387
    apply_filters( 'ccchildpages_menu_position', null );
  • includes/ccchildpages.php line 1385
    apply_filters( 'ccchildpages_menu_slug', 'cc-child-pages' );
  • includes/ccchildpages.php line 1381
    apply_filters( 'ccchildpages_menu_title', __( 'CC Child Pages', 'cc-child-pages' ) );
  • includes/ccchildpages.php line 376
    apply_filters( 'ccchildpages_meta_template', '<p class="small cc-meta-info">{{meta}}</p>', $a );
  • includes/ccchildpages.php line 976
    apply_filters( 'ccchildpages_more_template', '<p class="ccpages_more"><a href="{{link}}" {{link_target}} title="{{more}}">{{more}}</a></p>', $a );
  • includes/ccchildpages.php line 1368
    apply_filters( 'ccchildpages_options', $options );
  • includes/ccchildpages.php line 1444
    do_action( 'ccchildpages_options_before_form', $options );
  • includes/ccchildpages.php line 1556
    do_action( 'ccchildpages_options_form', $options );
  • includes/ccchildpages.php line 1453
    do_action( 'ccchildpages_options_form_top', $options );
  • includes/ccchildpages.php line 365
    apply_filters( 'ccchildpages_outer_template', '<div id="ccchildpages-' . $cc_uid . '" class="ccchildpages ' . apply_filters( 'ccchildpages_css_version', $css_version_class, $a ) . ' {{class}} {{skin}} ccclearfix">{{ccchildpages}}</div>', $a );
  • includes/ccchildpages.php line 516
    apply_filters( 'ccchildpages_query_args', $args, $a );
  • includes/ccchildpages.php line 370
    apply_filters( 'ccchildpages_title_template', '<h3{{title_class}}>{{title}}</h3>', $a );
  • includes/ccchildpages.php line 1149
    apply_filters( 'ccchildpages_upgrade_url', 'https://ccplugins.co.uk/wordpress-plugins/cc-child-pages-pro/' );
  • includes/ccchildpages_widget.php line 101
    apply_filters( 'ccchildpages_widget_after_title', $args['after_title'], $args, $instance );
  • includes/ccchildpages_widget.php line 100
    apply_filters( 'ccchildpages_widget_before_title', $args['before_title'], $args, $instance );
  • includes/ccchildpages_widget.php line 94
    apply_filters( 'ccchildpages_widget_end_ul', '</ul>', $args, $instance );
  • includes/ccchildpages_widget.php line 96
    apply_filters( 'ccchildpages_widget_output', $ul_open . $out . $ul_close, $args, $instance );
  • includes/ccchildpages_widget.php line 73
    apply_filters( 'ccchildpages_widget_pages_args', array( 'title_li' => '', 'child_of' => $parent_id, 'echo' => 0, 'depth' => $depth, 'sort_column' => $sortby, 'exclude' => $exclude, 'exclude_tree' => $exclude_tree, ), $args, $instance );
  • includes/ccchildpages_widget.php line 93
    apply_filters( 'ccchildpages_widget_start_ul', '<ul>', $args, $instance );
  • build/cc-child-pages/render.php line 20
    apply_filters( 'ccchildpages_wrapper_classes', $extra_classes, $attributes );
  • includes/ccchildpages.php line 1905
    apply_filters( 'ccchildpages/pro_present', false );
  • the_content

    filter
    includes/ccchildpages.php line 866
    apply_filters( 'the_content', $page_excerpt );
  • widget_title

    filter
    includes/ccchildpages_widget.php line 102
    apply_filters( 'widget_title', $widget_title, $args, $instance );

Generated from CC Child Pages'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: