Skip to content

Instantly share code, notes, and snippets.

View leenswitts's full-sized avatar
:bowtie:

leenswitts leenswitts

:bowtie:
View GitHub Profile
@yanknudtskov
yanknudtskov / alb-post-support.php
Last active May 17, 2022 12:26
Adding support for Advanced Layout Builder on custom post types in Enfold Remeber to add the custom-post type to the arrays #enfold #alb #custom-post-types #cpt
<?php
/**
* Enable Layout Builder for Custom Post Types
*/
add_theme_support('add_avia_builder_post_type_option');
add_theme_support('avia_template_builder_custom_post_type_grid');
add_filter('avf_builder_boxes','yanco_enable_cpt_layout_builder');
function yanco_enable_cpt_layout_builder( $boxes ) {