Skip to content

Instantly share code, notes, and snippets.

View ninjamonkno1's full-sized avatar

Darren Stuart ninjamonkno1

View GitHub Profile
@ninjamonkno1
ninjamonkno1 / functions.php
Created August 6, 2017 13:44
Get Permalink or post id in beaver builder Custom Post Layouts
<?php
add_action( 'fl_page_data_add_properties', function() {
FLPageData::add_post_property( 'permalink', array(
'label' => 'Post Permalink',
'group' => 'posts',
'type' => 'string',
'getter' => 'permalink_getter',
) );
} );