The UABB Action Reference

The UABB Action Reference

Have you ever wanted a module to act like you want it to?
We are here to help. We』ll be adding a few actions that will make customization easier and faster. Don』t see an action you』ve thought of? Let us know. We』ll add that too!

Module: Advanced Post

Action: uabb_blog_posts_before_post
Description: This action gets executed at the starting of each post div. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action before starting of each post div.
function abc( $post_id, $settings ) {
//Do any operation with the $post_id. Helps one perform any action before starting of each post div.
echo 'some text';
}
add_action( 'uabb_blog_posts_before_post', 'abc', 10, 2 );

Action: uabb_blog_posts_after_post
Description: This action gets executed at the end of each post div. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action after the end of each post div.
function abc($post_id, $settings ) {
//Do any operation with the $post_id. Helps one perform any action after the end of each post div.
echo 'some text';
}
add_action( 'uabb_blog_posts_after_post', 'abc', 10, 2 );
Action: uabb_blog_posts_before_title
Description: This action gets executed before the post title is shown. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action before the post title.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action before the post title.
echo 'some text';
}
add_action( 'uabb_blog_posts_before_title', 'abc', 10, 2);
Action: uabb_blog_posts_after_title
Description: This action gets executed after the post title is shown. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action after the end of each post title.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action after the post title.
echo 'some text';
}
add_action( 'uabb_blog_posts_after_title', 'abc', 10, 2 );
Action: uabb_blog_posts_before_meta
Description: This action gets executed before the post meta is shown. Parameter to this is current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action before the post meta.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action before the post meta.
echo 'some text';
}
add_action( 'uabb_blog_posts_before_meta', 'abc', 10, 2 );
Action: uabb_blog_posts_after_meta
Description: This action gets executed after the post meta is shown. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action after the post meta.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action after the post meta.
echo 'some text';
}
add_action( 'uabb_blog_posts_after_meta', 'abc', 10, 2 );
Action: uabb_blog_posts_before_content
Description: This action gets executed before the post content is shown. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action before the post content.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action before the post content.
echo 'some text';
}
add_action( 'uabb_blog_posts_before_content', 'abc', 10, 2 );
Action: uabb_blog_posts_after_content
Description: This action gets executed after the post content is shown. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action after the post content.
function abc($post_id, $settings) {
//Do any operation with the $post_id. Helps one perform any action after the post content.
echo 'some text';
}
add_action( 'uabb_blog_posts_after_content', 'abc', 10, 2 );
Action: uabb_blog_posts_before_image
Description: This action gets executed at the starting of each post featured image. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action before starting of each post featured image.
function abc( $post_id, $settings ) {
//Do any operation with the $post_id. Helps one perform any action before starting of each post featured image.
echo 'some text';
}
add_action( 'uabb_blog_posts_before_image', 'abc', 10, 2 );
Action: uabb_blog_posts_after_image
Description: This action gets executed after the each post featured image. Parameters to this are current post_id and settings object. This is helpful when one needs extra actions on individual posts.
// Helps one perform any action after the post featured image.
function abc( $post_id, $settings ) {
//Do any operation with the $post_id. Helps one perform any action after the each post featured image.
echo 'some text';
}
add_action( 'uabb_blog_posts_after_image', 'abc', 10, 2 );

Module: Advanced Menu

Action: uabb_advanced_menu_before
Description: This action is built to add some HTML code before the menu.
// This function adds Buy Now Button Before the Menu
function function_name() {
echo "

  • "; // Change this html.
    }
    add_action( 'uabb_advanced_menu_before', 'function_name' );
    Action: uabb_advanced_menu_after
    Description: This action is built to add some HTML code after the menu.
    // This function adds Buy Now Button After the Menu
    function function_name() {
    echo "

  • "; // Change this html.

    }
    add_action( 'uabb_advanced_menu_after', 'function_name' );

    Module: Price Box

    Action: uabb_price_box_button
    Description: This action is built to add custom HTML code in place of price box button. This is helpful when one needs to add custom button code. Parameter to this is $box_id which is column number and index starts from 0.
    // This function add custom button in price box column
    function function_name( $box_id ) {

    if( $box_id == 0 ) {
    echo '';
    }
    }
    add_action( 'uabb_price_box_button', 'function_name', 10, 1);
    Need more actions? We』ll keep updating this post.

    Introducing: Content Toggle Module

    Introducing: Content Toggle Module

    Available from version 1.8.0
    Content Toggle module helps you display two versions of a content, saved row, saved module and saved page templates within a single section allowing users to toggle between them using the toggle button.
    Content 1 Tab:
    You can add the Heading title, content or you can change the section as saved row, saved templates or saved modules you can use Saved Row, Saved Modules, Page Templates created before.

    Content 2 Tab:
    Like the content 1 tab, here too you can add the content you need.

    Style Tab:
    You can choose which content you wish to display by default. You can change the switcher style( Round 1, Round 2, Rectangle, Label Box ). You can change the size, colors for switcher and controller. 

    Heading tag will allow you to add HTML tags, Alignments, Layout, Background Color, Border Radius, Padding for heading. 

    Using the Content Tab you can add the Background Color, Border Radius, Padding for content. You can also add spacing between headings and buttons and in content and headings.

    Typography Tab

    Using this tab you can change the Heading 1, Heading 2, Content 1 and Content 2 typography like Font Family, Font Size, Line Height, Color, Text Transform, and Letter Spacing.

    What is the use of UABB Templates Manager?

    What is the use of UABB Templates Manager?

    Deprecated From Version 1.3.0
    Templates are a boon! We are sure no one will disagree with the fact that templates actually make work much simpler and faster.
    The Ultimate Addons for Beaver Builder comes with a number of row and page templates. You can enable the templates you wish to use while the others can remain disabled.
    This is where you will have to disable the categories of sections you might not be using quite often.

    In order to enable or disable templates, you will have to follow the steps mentioned here.

    Note: You need to Disable the Show Row Categories and Show Module Categories option under templates. If enabled, these options show only the saved categories and prevent all third party templates and modules to be shown.

    How to fetch Latest Templates from Template Cloud?

    How to fetch Latest Templates from Template Cloud?

    Available from Version 1.3.0
    All the recently created templates; whether section templates or page templates will be uploaded to our Template Cloud.
    In order to fetch these templates from our cloud server, you need to simply click on the refresh button seen in the screenshot below.

    This will pull all the latest templates directly from our template cloud server.

    Not sure how you can install templates? Take a look at the article here.
    Using the Template Cloud on a multisite setup? Take a look at the article here.
    Cannot see the installed Cloud Templates? Take a look at the article here.

    GDPR Compliance with Contact Form and Subscription Form Modules

    GDPR Compliance with Contact Form and Subscription Form Modules

    UABB version 1.7.3 adds new features that allow you to remain GDPR compliant.
    You can use the GDPR consent box feature by following the steps mentioned below:
    Step 1: Open the Contact Form module and scroll down to the 「Terms and Conditions Field」. You』ll find the option to enable or disable the GDPR consent box. Enable this

    Step 2: Select responsive toggle for 「Terms and Conditions checkbox」 in the General tab of the module:

    Step 3: Add necessary Checkbox text and Terms and Conditions Text in the 「Checkbox Text」 and 「Terms and Conditions」 text field. You can also add a link using HTML tags.
    Step 4: You can make changes to the checkbox fields from the 「Input Color」 and 「Input Border Style」 to make the Checkbox look just like the input fields.

     
    Step 5: If you require to make custom changes to the Check boxes you can do the same from the Terms Checkbox field.

    Step 6: On enabling GDPR consent box, it adds typography settings for 「Checkbox Text」 and 「Terms and Conditions Text」 in the Typography tab of the module.

    Now your contact form is GDPR compliant, similarly, you can add the GDPR consent box for the Subscription Form module.

    Failed to download template from Template Cloud

    Failed to download template from Template Cloud

    To download the template from Template Cloud, your server should have enabled allow_url_fopen PHP module. If allow_url_fopen PHP module is disabled then you may face failed error while downloading the template.
    To resolve this issue, kindly contact your host and request them to enable allow_url_fopen PHP module.

    Fix for – The PCLZIP_ERR_BAD_FORMAT (-10) Error

    Fix for – The PCLZIP_ERR_BAD_FORMAT (-10) Error

    The PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature error is caused by one of two things as below:
    Case 1: There』s a problem with the zip file or it』s format.
    It』s possible that the plugin zip file became corrupted when it was downloaded. Try downloading it from your account on our store and install (or update manually)
    Case 2: Server Disk Space Issue
    If you still receive the same error while trying to install the zip manually, then it may mean that there』s not enough storage space on your host for WordPress to be able to unzip and upload the contents of the file. To confirm this, try to upload other files to your site, such as an image, video or other plugin. If you』re not able to upload large files, then storage space is likely the issue.
    You can either remove some files (backups or themes & plugin that you』re not using) or contact your web host to increase your storage capacity.