Xpro Theme Builder For Elementor icon
Page Builders & Blocks

Xpro Theme Builder For Elementor hooks reference

  • By Xpro
  • v1.2.16
  • Updated

Xpro Theme Builder For Elementor 1.2.16 has 4 actions and 28 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 Xpro Theme Builder For Elementor fires an action
add_action( 'wp_body_open', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Xpro Theme Builder For Elementor is about to use
add_filter( 'xpro_display_on_list', function( $selection_options ) {
	// Change $selection_options here.
	return $selection_options;
}, 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

  • lib/target-rule/class-xpro-target-rules-fields.php line 202
    /**
     * Filter options displayed in the display conditions select field of Display
     * conditions.
     */
    apply_filters( 'xpro_display_on_list', $selection_options );
  • lib/target-rule/class-xpro-target-rules-fields.php line 245
    /**
     * Filter options displayed in the user select field of Display conditions.
     */
    apply_filters( 'xpro_user_roles_list', $selection_options );
  • wp_body_open

    action
    inc/templates/blank.php line 15 · used in 2 places
    do_action( 'wp_body_open' );
  • lib/target-rule/class-xpro-target-rules-fields.php line 1371 · used in 2 places
    apply_filters( 'xpro_get_display_posts_by_conditions', self::$current_page_data[ $post_type ], $post_type );
  • inc/xpro-functions.php line 659
    apply_filters( 'enable_xpro_theme_builder_render_archive', true );
  • inc/xpro-functions.php line 520
    apply_filters( 'enable_xpro_theme_builder_render_header', true );
  • inc/xpro-functions.php line 602
    apply_filters( 'enable_xpro_theme_builder_render_singular', true );
  • inc/xpro-functions.php line 631
    apply_filters( 'get_xpro_theme_builder_archive_id', $archive_id );
  • inc/xpro-functions.php line 494
    apply_filters( 'get_xpro_theme_builder_header_id', $header_id );
  • inc/xpro-functions.php line 574
    apply_filters( 'get_xpro_theme_builder_singular_id', $singular_id );
  • inc/wpml-compatibility.php line 53
    apply_filters( 'wpml_object_id', $id );
  • xpro_header

    action
    inc/templates/header.php line 13
    do_action( 'xpro_header' );
  • lib/target-rule/class-xpro-target-rules-fields.php line 124
    apply_filters( 'xpro_location_rule_post_types', array_merge( $post_types, $custom_post_type ) );
  • lib/target-rule/class-xpro-target-rules-fields.php line 957
    apply_filters( 'xpro_target_page_settings', $current_layout, $layout_id );
  • inc/xpro-functions.php line 649
    apply_filters( 'xpro_theme_builder_archive_enabled', $status );
  • inc/xpro-functions.php line 246
    apply_filters( 'xpro_theme_builder_auto_sidebar_id', $ids ? (int) $ids[0] : false, $position );
  • inc/xpro-functions.php line 73
    apply_filters( 'xpro_theme_builder_custom_sidebars', $sidebars );
  • plugin.php line 187
    apply_filters( "xpro_theme_builder_get_settings_{$setting}", $template );
  • inc/xpro-functions.php line 461
    apply_filters( 'xpro_theme_builder_header_enabled', $status );
  • xpro-theme-builder.php line 45
    do_action( 'xpro_theme_builder_loaded' );
  • plugin.php line 351
    apply_filters( 'xpro_theme_builder_render_template_id', intval( $atts['id'] ) );
  • inc/xpro-functions.php line 296
    apply_filters( 'xpro_theme_builder_selected_sidebar_id', $id, $position );
  • inc/xpro-functions.php line 122
    apply_filters( 'xpro_theme_builder_sidebar_layout_keys', array( 'xpro-sidebar-layout', 'xpro-main-sidebar-layout', 'xpro-sidebar', 'xpro_sidebar_layout', 'sidebar-layout', ) );
  • inc/sidebar.php line 389
    apply_filters( 'xpro_theme_builder_sidebar_markup', $html, $id, $position );
  • inc/sidebar.php line 205
    apply_filters( 'xpro_theme_builder_sidebar_position', '', $index );
  • inc/sidebar.php line 89
    apply_filters( 'xpro_theme_builder_sidebar_positions', array( 'xpro-main-sidebar' => '', 'xpro-woocommerce-sidebar' => '', 'sidebar-1' => '', 'sidebar' => '', 'sidebar-main' => '', 'primary-sidebar' => '', 'sidebar-left' => 'left', 'sidebar-right' => 'right', ) );
  • inc/xpro-functions.php line 592
    apply_filters( 'xpro_theme_builder_singular_enabled', $status );
  • inc/xpro-functions.php line 192
    apply_filters( 'xpro_theme_builder_theme_sidebar_layout', $raw );

Generated from Xpro Theme Builder For Elementor'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: