Avada Builder Hooks: Actions and Filters

Legacy Doc

Last Update: April 30, 2023

Here is a list of actions and filters that are available for the Avada Builder plugin. If you would like to view hooks for the Avada WordPress Builder, then please click the button bellow.

Actions List

Copy to Clipboard

Files:
fusion-builder/front-end/class-fusion-builder-front.php
fusion-builder/inc/class-fusion-builder.php

Description: This hook is executed before Fusion Builder initialization.

Arguments: None.
Copy to Clipboard

File: fusion-builder/front-end/class-fusion-builder-front.php

Description: This hook is executed after live editor templates are loaded.

Arguments: None.
Copy to Clipboard

File: fusion-builder/front-end/class-fusion-builder-front.php

Description: This hook is executed after live editor scripts are enqueued.

Arguments: None.
Copy to Clipboard

File: fusion-builder/inc/bootstrap.php

Description: This hook is executed when library files are loaded in Fusion Builder.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/class-fusion-builder.php

Description: This hook is executed to init shortcodes.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/class-fusion-builder-library-table.php

Description: This hook is executed for display of library element columns.

Arguments: $column_id $item
Copy to Clipboard

File: fusion-builder/inc/class-fusion-builder-library.php

Description: This hook is executed after a library element is created.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/class-fusion-builder.php

Description: This hook is executed after backend editor scripts are enqueued.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/class-fusion-custom-icons-table.php

Description: This hook is executed for display of custom icons columns.

Arguments: None
Copy to Clipboard

Files:
fusion-builder/inc/class-fusion-template-builder.php
fusion-builder/shortcodes/fusion-breadcrumbs.php

Description: This hook is executed to filter meta data in live editor.

Arguments: None.
Copy to Clipboard

File: fusion-builder/inc/class-fusion-dynamic-data-callbacks.php

Description: This hook can be used to pause meta data filter in live editor.

Arguments: None.
Copy to Clipboard

File: fusion-builder/inc/class-fusion-dynamic-data-callbacks.php

Description: This hook can be used to resume meta data filter in live editor.

Arguments: None.
Copy to Clipboard

File: fusion-builder/inc/class-fusion-template-builder-table.php

Description: This hook is executed for display of theme builder layout section columns.

Arguments: None
Copy to Clipboard

Files:
fusion-builder/inc/class-fusion-template-builder.php
fusion-builder/shortcodes/components/content.php

Description: This hook is executed to make actual post content non editable in live editor.

Arguments: None
Copy to Clipboard

Files:
fusion-builder/inc/class-fusion-template-builder.php
fusion-builder/inc/class-fusion-builder-library.php
fusion-builder/shortcodes/components/content.php

Description: This hook is executed to make actual post content editable in live editor.

Arguments: None
Copy to Clipboard

File: fusion-builder/front-end/class-fusion-builder-front.php

Description: This hook can be used to enqueue separate scripts when developer mode is enabled.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/templates.php

Description: This hook is executed before builder templates are added.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/templates.php

Description: This hook is executed after builder templates are added.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/templates/app.php

Description: This hook is executed before builder container content is added.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/templates/app.php

Description: This hook is executed after builder container content.

Arguments: None
Copy to Clipboard

File: fusion-builder/shortcodes/components/templates/fusion-tb-comments.php

Description: This hook is executed before theme builder comments section is displayed.

Arguments: None
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-blog.php

Description: This hook is executed to get blog timeline layout date.

Arguments: $date_params
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-blog.php

Description: This hook is executed before blog shortcode loop.

Arguments: None
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-blog.php

Description: This hook is executed after blog shortcode loop.

Arguments: None
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-blog.php

Description: This hook is executed to get date and format section for medium alternate and large alternate layouts in blog element.

Arguments: None
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-events.php

Description: This hook is executed to get placeholder image in events.

Arguments: fixed
Copy to Clipboard

File: fusion-builder/templates/template-page.php

Description: This hook is executed before template builder content element is displayed.

Arguments: None
Copy to Clipboard

File: fusion-builder/inc/class-fusion-form-submit.php

Description: This hook is executed after Fusion form submission data is ready.

Arguments: $form_data $form_post_id

Filters List

Copy to Clipboard

File: Avada/includes/class-fusion-builder-migrate.php

Description: Used to support migration of Custom Post Types that use Fusion Builder elements in Avada 5.0 or higher.

Default Value: None
Copy to Clipboard

Files:
fusion-builder/front-end/class-fusion-builder-front.php
fusion-builder/inc/class-fusion-builder.php
fusion-builder/shortcodes/fusion-widget.php

Description: Allows to filter Fusion Builder elements for JS object.

Default Value: $fusion_builder_elements
Copy to Clipboard

Files: fusion-builder/inc/shortcodes.php

Description: Allows to filter Fusion Builder elements parameters.

Arguments: $params $shortcode
Copy to Clipboard

Files: fusion-builder/inc/class-fusion-template-builder.php

Description: Allows to filter Fusion Builder template section tag.

Arguments: $default_tag $section_name
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Let's you control the default values that should be set for portfolio element.

Default Value: $defaults
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the actual query parameters that will be used to retrieve posts.

Default Value: $args
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the title markup for portfolio carousels.

Default Value: $fusion_portfolio_carousel_title
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the terms markup for portfolio carousels.

Default Value: $carousel_terms
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the video markup.

Default Value: $video_markup: The full markup
$video: The iframe tag added in the post options.
$video_max_width: Allowed maximum width the video may take up.
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the title markup for portfolio grids.

Default Value: $post_title
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the terms markup for portfolio grids.

Default Value: $post_terms
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the separator markup for portfolio grids.

Default Value: $separator
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the content markup for portfolio grids.

Default Value: $stripped_content
Copy to Clipboard

File: fusion-core/shortcodes/fusion-portfolio.php

Description: Can be used to change the button markup for portfolio grids.

Default Value: $buttons: “Learn More” and “View Project” buttons including the wrapper div
$learn_more_button: “Learn More” button markup.
$view_project_button: “View Project” button markup.
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-blog.php

Description: Filters the HTML output of the blog element pagination.

Params: $output: The HTML output of the pagination.
$pages: Max number of pages.
$range: How many page numbers to display to either side of the current page.
$current_query: The query for which the pagination is constructed.
$blog_global_pagination: Global pagination style override.

Default Value: The pagination HTML output constructed by the blog element class.
Copy to Clipboard

File: fusion-builder/shortcodes/fusion-user-login.php

Description: Can be used to update the standard messages/notices for User element.

Default Value: $notice_array: They array having all notices
$action: Sanitized form action.
$success: Bool success.
Copy to Clipboard

Files: fusion-builder/inc/lib/inc/functions.php
fusion-builder/shortcodes/fusion-blog.php
fusion-builder/shortcodes/fusion-events.php
fusion-builder/shortcodes/fusion-recent-posts.php

Description: Allows to set the amount of page links shown left and right to the current element.

Params: $range

Default Value: 1
Copy to Clipboard
Files:

Avada
Avada/includes/lib/inc/fusion-app/class-fusion-app.php
Avada/includes/lib/inc/fusion-app/fusion-app.php

Fusion Builder
fusion-builder/inc/class-fusion-builder-gutenberg.php
fusion-builder/inc/class-fusion-builder.php

Description: Filter is used to determine if live editor should be loaded or not.

Arguments: $load (boolean)

Example For Disabling: add_filter( 'fusion_load_live_editor', '__return_false', 999 );

Copy to Clipboard
Files:

Avada
Avada/includes/avada-functions.php
Avada/includes/lib/inc/class-fusion-social-icon.php

Fusion Builder
fusion-builder/inc/lib/inc/class-fusion-social-icon.php
fusion-builder/shortcodes/fusion-person.php
fusion-builder/shortcodes/fusion-social-links.php

Fusion Core
fusion-core/includes/widget/class-fusion-widget-contact-info.php
fusion-core/includes/widget/class-fusion-widget-social-links.php

Description: Filter to easily disable the antispambot function of WordPress for emails.

Default value: false

Example For Disabling: add_filter( 'fusion_disable_antispambot', '__return_true' );

Copy to Clipboard
Copy to Clipboard

File: fusion-builder/inc/class-fusion-builder.php

Description: Can be used to enable Fusion Builder for a post type by default.

Default Value: Array of post types.
Copy to Clipboard

File: fusion-builder/inc/shortcodes.php

Description: Can be used to enable Fusion Builder Elements.

Default Value: Array of enabled elements.
Copy to Clipboard

File: fusion-builder/inc/class-fusion-template-builder.php

Description: Can be used to modify theme builder section override.

Params: $override: The override.
$type: The type of override we're querying.
$c_page_id: Current page ID.

Copy to Clipboard

File: fusion-builder/inc/class-fusion-template-builder.php

Description: Can be used to modify theme builder layout condition post types.

Params: $post_types: The existing post types

Copy to Clipboard
Files:
fusion-builder/shortcodes/components/archives.php
fusion-builder/shortcodes/components/author.php
fusion-builder/shortcodes/components/comments.php
fusion-builder/shortcodes/components/content.php
fusion-builder/shortcodes/components/featured-slider.php
fusion-builder/shortcodes/components/pagination.php
fusion-builder/shortcodes/components/related.php


Description: Allows to modify Theme Builder component content.

Params: $shortcode_handle: Component name.
$html: Component HTML.
$args: Component Options.