Hooks

Use the built in hooks in Page Builder Framework in your child-theme’s functions.php to further customize your website.


General

Hook: wpbf_body_open

Execution: Fires after the opening <body> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_body_open', 'your_prefix_function' );

Hook: wpbf_content_open

Execution: Fires after the opening content wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_content_open', 'your_prefix_function' );

Hook: wpbf_main_content_open

Execution: Fires after the opening main content wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_main_content_open', 'your_prefix_function' );

Hook: wpbf_before_page_title

Execution: Fires before the page title.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_page_title', 'your_prefix_function' );

Hook: wpbf_after_page_title

Execution: Fires after the page title.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_page_title', 'your_prefix_function' );

Hook: wpbf_main_content_close

Execution: Fires before the closing main content wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_main_content_close', 'your_prefix_function' );

Hook: wpbf_content_close

Execution: Fires before the closing content wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_content_close', 'your_prefix_function' );

Hook: wpbf_body_close

Execution: Fires before the closing <body> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_body_close', 'your_prefix_function' );

Pre Header

Hook: wpbf_before_pre_header

Execution: Fires before the pre-header section.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_pre_header', 'your_prefix_function' );

Hook: wpbf_pre_header_open

Execution: Fires after the opening pre-header wrapper (only available on single column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_open', 'your_prefix_function' );

Hook: wpbf_pre_header_close

Execution: Fires before the closing pre-header wrapper (only available on single column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_close', 'your_prefix_function' );

Hook: wpbf_pre_header_left_open

Execution: Fires before the pre-header content in the left column (only available on two column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_left_open', 'your_prefix_function' );

Hook: wpbf_pre_header_left_close

Execution: Fires after the pre-header content in the left column (only available on two column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_left_close', 'your_prefix_function' );

Hook: wpbf_pre_header_right_open

Execution: Fires before the pre-header content in the right column (only available on two column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_right_open', 'your_prefix_function' );

Hook: wpbf_pre_header_right_close

Execution: Fires after the pre-header content in the right column (only available on two column layout).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_pre_header_right_close', 'your_prefix_function' );

Hook: wpbf_after_pre_header

Execution: Fires after the pre-header section.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_pre_header', 'your_prefix_function' );

Hook: wpbf_before_header

Execution: Fires before the opening <header> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_header', 'your_prefix_function' );

Hook: wpbf_header_open

Execution: Fires after the opening <header> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_header_open', 'your_prefix_function' );

Hook: wpbf_header_close

Execution: Fires before the closing <header> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_header_close', 'your_prefix_function' );

Hook: wpbf_after_header

Execution: Fires after the closing <header> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_header', 'your_prefix_function' );

Hook: wpbf_before_main_navigation

Execution: Fires before the main navigation.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_main_navigation', 'your_prefix_function' );

Hook: wpbf_before_main_menu

Execution: Fires before the opening main menu <nav> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_main_menu', 'your_prefix_function' );

Hook: wpbf_main_menu_open

Execution: Fires after the opening main menu <nav> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_main_menu_open', 'your_prefix_function' );

Hook: wpbf_main_menu_close

Execution: Fires before the closing main menu <nav> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_main_menu_close', 'your_prefix_function' );

Hook: wpbf_after_main_menu

Execution: Fires after the closing main menu <nav> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_main_menu', 'your_prefix_function' );

Hook: wpbf_after_main_navigation

Execution: Fires after the main navigation.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_main_navigation', 'your_prefix_function' );

Hook: wpbf_before_menu_toggle

Execution: Fires before the menu toggle on desktop navigations (off-canvas & full-screen).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_menu_toggle', 'your_prefix_function' );

Hook: wpbf_after_menu_toggle

Execution: Fires after the menu toggle on desktop navigations (off-canvas & full-screen).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_menu_toggle', 'your_prefix_function' );

Hook: wpbf_before_mobile_toggle

Execution: Fires before the menu toggle on mobile navigations (hamburger & off-canvas).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_mobile_toggle', 'your_prefix_function' );

Hook: wpbf_after_mobile_toggle

Execution: Fires after the menu toggle on mobile navigations (hamburger & off-canvas).

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_mobile_toggle', 'your_prefix_function' );

Hook: wpbf_before_sidebar

Execution: Fires before the opening <aside> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_sidebar', 'your_prefix_function' );

Hook: wpbf_sidebar_open

Execution: Fires after the opening <aside> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_sidebar_open', 'your_prefix_function' );

Hook: wpbf_after_sidebar

Execution: Fires after the closing <aside> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_sidebar', 'your_prefix_function' );

Hook: wpbf_sidebar_close

Execution: Fires before the closing <aside> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_sidebar_close', 'your_prefix_function' );

Hook: wpbf_before_footer

Execution: Fires before the opening <footer> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_footer', 'your_prefix_function' );

Hook: wpbf_footer_open

Execution: Fires after the opening <footer> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_footer_open', 'your_prefix_function' );

Hook: wpbf_footer_close

Execution: Fires before the closing <footer> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_footer_close', 'your_prefix_function' );

Hook: wpbf_after_footer

Execution: Fires after the closing <footer> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_footer', 'your_prefix_function' );

Posts

Hook: wpbf_before_article

Execution: Fires before the opening <article> tag on single pages.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_article', 'your_prefix_function' );

Hook: wpbf_before_article_meta

Execution: Fires before the article meta-data.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_article_meta', 'your_prefix_function' );

Hook: wpbf_article_meta_open

Execution: Fires after the opening article meta-data wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_article_meta_open', 'your_prefix_function' );

Hook: wpbf_before_author_meta

Execution: Fires before the author meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_author_meta', 'your_prefix_function' );

Hook: wpbf_after_author_meta

Execution: Fires after the author meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_author_meta', 'your_prefix_function' );

Hook: wpbf_before_date_meta

Execution: Fires before the date meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_date_meta', 'your_prefix_function' );

Hook: wpbf_after_date_meta

Execution: Fires after the date meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_date_meta', 'your_prefix_function' );

Hook: wpbf_before_comments_meta

Execution: Fires before the comments meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_comments_meta', 'your_prefix_function' );

Hook: wpbf_after_comments_meta

Execution: Fires after the comments meta.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_comments_meta', 'your_prefix_function' );

Hook: wpbf_article_meta_close

Execution: Fires before the closing article meta-data wrapper.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_article_meta_close', 'your_prefix_function' );

Hook: wpbf_after_article_meta

Execution: Fires after the article meta-data inside the article-header.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_article_meta', 'your_prefix_function' );

Hook: wpbf_before_comments

Execution: Fires before the comment section.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_comments', 'your_prefix_function' );

Hook: wpbf_before_comment_form

Execution: Fires before the comment form.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_comment_form', 'your_prefix_function' );

Hook: wpbf_after_comment_form

Execution: Fires after the comment form.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_comment_form', 'your_prefix_function' );

Hook: wpbf_after_comments

Execution: Fires after the comment section.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_comments', 'your_prefix_function' );

Hook: wpbf_before_post_links

Execution: Fires before the post navigation.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_before_post_links', 'your_prefix_function' );

Hook: wpbf_after_post_links

Execution: Fires after the post navigation.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_post_links', 'your_prefix_function' );

Hook: wpbf_after_article

Execution: Fires after the closing <article> tag on single pages.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_article', 'your_prefix_function' );

Related Articles

Download Today. It's 100% Free.

You have a best friend, your Page Builder probably should too.

Page Builder Framework

A modern, fast & minimalistic theme designed for the new WordPress Era.

Sign up for the Newsletter

Get notified about the latest updates and feature releases.

We take your privacy seriously! No spam, we promise. See our Privacy Policy
Community
Scroll to Top