Hooks

Use the built in hooks in your child-themes 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_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_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_before_off_canvas_menu

Execution: Fires before the opening off-canvas menu <nav> tag.

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

Hook: wpbf_after_off_canvas_menu

Execution: Fires after the closing off-canvas menu <nav> tag.

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

Hook: wpbf_before_full_screen_menu

Execution: Fires before the opening full-screen menu <nav> tag.

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

Hook: wpbf_after_full_screen_menu

Execution: Fires after the closing full-screen menu <nav> tag.

function your_prefix_function() {
    echo 'Lorem Ipsum'; 
} 
add_action( 'wpbf_after_full_screen_menu', '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_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_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_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

Page Builder Framework

A Page Builder’s best friend.

Sign up for the Newsletter

Get notified about the latest features and updates.

Join the Community