1 vote

Custom Sections => Custom Hooks

Hey there, It would be great to have in the Custom Section the possibility to add custom hooks besides all the default hooks that are already in it. Best
Completed Paolo shared this idea

2 Comments

  • Will be added with the next release! 🙂

    Example:

    function prefix_my_custom_hooks( $hooks ) {
    
    	$custom_hooks = array(
    		'Custom Hooks' => array(
    			'prefix_custom_hook_1',
    			'prefix_custom_hook_2',
    		),
    	);
    
    	$hooks = array_merge( $hooks, $custom_hooks );
    
    	return $hooks;
    
    }
    add_filter( 'wpbf_custom_section_hooks', 'prefix_my_custom_hooks' );
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

We take your privacy seriously! See our Privacy Policy.

2 Comments

  • Will be added with the next release! 🙂

    Example:

    function prefix_my_custom_hooks( $hooks ) {
    
    	$custom_hooks = array(
    		'Custom Hooks' => array(
    			'prefix_custom_hook_1',
    			'prefix_custom_hook_2',
    		),
    	);
    
    	$hooks = array_merge( $hooks, $custom_hooks );
    
    	return $hooks;
    
    }
    add_filter( 'wpbf_custom_section_hooks', 'prefix_my_custom_hooks' );

Comments are closed.

Scroll to Top

Download

Download Page Builder Framework and be the first to get informed about new features & updates!

OR

Get 10% off our Premium Add-On (yearly plan).
Coupon Code to enter during checkout: 10OFF View Pricing