{"id":4153,"date":"2016-12-09T11:26:22","date_gmt":"2016-12-09T11:26:22","guid":{"rendered":"https:\/\/www.ultimatebeaver.com\/docs\/?p=4153"},"modified":"2018-08-02T11:50:42","modified_gmt":"2018-08-02T11:50:42","slug":"uabb-action-reference","status":"publish","type":"docs","link":"https:\/\/www.ultimatebeaver.com\/docs\/uabb-action-reference\/","title":{"rendered":"The UABB Action Reference"},"content":{"rendered":"<p>Have you ever wanted a module to act like you want it to?<\/p>\n<p>We are here to help. We\u2019ll be adding a few actions that will make customization easier and faster. Don\u2019t see an action you\u2019ve thought of? Let us know. We\u2019ll add that too!<\/p>\n<h4>Module: Advanced Post<\/h4>\n<p><strong>Action:<\/strong> uabb_blog_posts_before_post<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action before starting of each post div.\r\nfunction abc( $post_id, $settings ) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action before starting of each post div.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_before_post', 'abc', 10, 2 );\r\n<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_after_post<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action after the end of each post div.\r\nfunction abc($post_id, $settings ) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action after the end of each post div.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_after_post', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_before_title<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action before the post title.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action before the post title.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_before_title', 'abc', 10, 2);<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_after_title<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action after the end of each post title.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action after the post title.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_after_title', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_before_meta<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action before the post meta.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action before the post meta.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_before_meta', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_after_meta<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action after the post meta.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action after the post meta.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_after_meta', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_before_content<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action before the post content.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action before the post content.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_before_content', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_after_content<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action after the post content.\r\nfunction abc($post_id, $settings) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action after the post content.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_after_content', 'abc', 10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_before_image<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action before starting of each post featured image.\r\nfunction abc( $post_id, $settings ) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action before starting of each post featured image.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_before_image', 'abc',  10, 2 );<\/pre>\n<p><strong>Action:<\/strong> uabb_blog_posts_after_image<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ Helps one perform any action after the post featured image.\r\nfunction abc( $post_id, $settings ) {\r\n    \/\/Do any operation with the $post_id. Helps one perform any action after the each post featured image.\r\n    echo 'some text';\r\n}\r\nadd_action( 'uabb_blog_posts_after_image', 'abc', 10, 2 );<\/pre>\n<h4>Module: Advanced Menu<\/h4>\n<p><strong>Action:<\/strong> uabb_advanced_menu_before<br \/>\n<strong>Description:<\/strong> This action is built to add some HTML code before the menu.<\/p>\n<pre>\/\/ This function adds Buy Now Button Before the Menu\r\nfunction function_name() {\r\n    echo \"&lt;li&gt;&lt;button&gt; Buy Now &lt;\/button&gt;&lt;\/li&gt;\"; \/\/ Change this html.\r\n}\r\nadd_action( 'uabb_advanced_menu_before', 'function_name' );<\/pre>\n<p><strong>Action:<\/strong> uabb_advanced_menu_after<br \/>\n<strong>Description:<\/strong> This action is built to add some HTML code after the menu.<\/p>\n<pre>\/\/ This function adds Buy Now Button After the Menu\r\nfunction function_name() {\r\n    echo \"&lt;li&gt;&lt;button&gt; Buy Now &lt;\/button&gt;&lt;\/li&gt;\"; \/\/ Change this html.\r\n\r\n}\r\nadd_action( 'uabb_advanced_menu_after', 'function_name' );<\/pre>\n<h4>Module: Price Box<\/h4>\n<p><strong>Action:<\/strong> uabb_price_box_button<br \/>\n<strong>Description:<\/strong> 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.<\/p>\n<pre>\/\/ This function add custom button in price box column\r\nfunction function_name( $box_id ) {\r\n\r\n\tif( $box_id == 0 ) {\r\n\t\techo '&lt;button type=\"button\"&gt;Get Started&lt;\/button&gt;';\r\n\t}\r\n}\r\nadd_action( 'uabb_price_box_button', 'function_name', 10, 1);<\/pre>\n<p>Need more actions? We&#8217;ll keep updating this post. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wanted a module to act like you want it to? We are [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"template":"","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_pfd_related_docs_manual":[],"pfd_doc_title":"","spectra_gs_classes":"","footnotes":""},"docs_category":[42],"docs_tag":[],"class_list":["post-4153","docs","type-docs","status-publish","hentry","docs_category-developers"],"spectra_custom_meta":{"_edit_last":["34"],"st_post_sidebar":["sidebar-right"],"_yoast_wpseo_content_score":["30"],"_yoast_wpseo_primary_category":["7"],"_st_post_views_count":["509"],"_fl_builder_data":["a:0:{}"],"_fl_builder_draft":["a:0:{}"],"_fl_builder_data_settings":["a:0:{}"],"_fl_builder_draft_settings":["a:0:{}"],"_edit_lock":["1533210536:34"],"_totes":["0"],"_fl_builder_data_back":["a:0:{}"],"_fl_builder_draft_back":["a:0:{}"],"_uabb_converted":["yes"],"_facebook_shares":["0"],"_total_shares":["0"],"swp_pinterest_image_url":[""],"swp_cache_timestamp":["425691"],"_yoast_wpseo_primary_docs_category":["42"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"stick-header-meta":["default"],"theme-transparent-header-meta":["default"],"views":["3515"],"rank_math_primary_category":["7"],"rank_math_primary_docs_category":["42"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["560"],"rank_math_internal_links_processed":["1"],"helpful":["1"],"unhelpful":["0"],"redirects":["1"],"_uag_page_assets":["a:9:{s:3:\"css\";s:5953:\".wp-block-uagb-advanced-heading h1,.wp-block-uagb-advanced-heading h2,.wp-block-uagb-advanced-heading h3,.wp-block-uagb-advanced-heading h4,.wp-block-uagb-advanced-heading h5,.wp-block-uagb-advanced-heading h6,.wp-block-uagb-advanced-heading p,.wp-block-uagb-advanced-heading div{word-break:break-word}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0}.wp-block-uagb-advanced-heading .uagb-separator{font-size:0;border-top-style:solid;display:inline-block;margin:0 0 10px 0}.wp-block-uagb-advanced-heading .uagb-highlight{color:#f78a0c;border:0;transition:all 0.3s ease}.uag-highlight-toolbar{border-left:0;border-top:0;border-bottom:0;border-radius:0;border-right-color:#1e1e1e}.uag-highlight-toolbar .components-button{border-radius:0;outline:none}.uag-highlight-toolbar .components-button.is-primary{color:#fff}\n.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-heading-text{color: var(--ast-global-color-1);}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading {text-align: left;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-desc-text{margin-bottom: 15px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight{font-style: normal;font-weight: Default;background: #007cba;color: #fff;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::-moz-selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd .uagb-heading-text{font-family: \"Poppins\";font-weight: 600;font-size: 14px;line-height: 1.2em;}.uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media (max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media (max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\n.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-heading-text{color: var(--ast-global-color-1);}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading {text-align: left;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-desc-text{margin-bottom: 15px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight{font-style: normal;font-weight: Default;background: #007cba;color: #fff;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::-moz-selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd .uagb-heading-text{font-family: \"Poppins\";font-weight: 600;font-size: 14px;line-height: 1.2em;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-heading-text{color: var(--ast-global-color-1);}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading {text-align: left;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-desc-text{margin-bottom: 15px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight{font-style: normal;font-weight: Default;background: #007cba;color: #fff;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::-moz-selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd .uagb-heading-text{font-family: \"Poppins\";font-weight: 600;font-size: 14px;line-height: 1.2em;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-heading-text{color: var(--ast-global-color-1);}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading {text-align: left;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-desc-text{margin-bottom: 15px;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight{font-style: normal;font-weight: Default;background: #007cba;color: #fff;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::-moz-selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd.wp-block-uagb-advanced-heading .uagb-highlight::selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-a170d6bd .uagb-heading-text{font-family: \"Poppins\";font-weight: 600;font-size: 14px;line-height: 1.2em;}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:1:{i:0;s:21:\"uagb\/advanced-heading\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1777616886\";s:6:\"gfonts\";a:1:{s:7:\"Poppins\";a:2:{s:10:\"fontfamily\";s:7:\"Poppins\";s:12:\"fontvariants\";a:1:{i:0;s:3:\"600\";}}}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"],"_uag_css_file_name":["uag-css-4153.css"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"rest-api-thumbnails":false},"uagb_author_info":{"display_name":"satishk","author_link":"https:\/\/www.ultimatebeaver.com\/author\/satishk\/"},"uagb_comment_info":0,"uagb_excerpt":"Have you ever wanted a module to act like you want it to? We are [&hellip;]","_links":{"self":[{"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/docs\/4153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/docs\/4153\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/media?parent=4153"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/docs_category?post=4153"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/www.ultimatebeaver.com\/wp-json\/wp\/v2\/docs_tag?post=4153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}