File "shortcode.php"
Full Path: /home/bytebmoc/tideswithin.com/wp-content/plugins/themesflat-addons-for-elementor/shortcode.php
File size: 718 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
if(!function_exists('flat_get_post_page_content')){
function flat_get_post_page_content( $slug ) {
// extract( shortcode_atts( array(
// 'id' => null,
// 'title' => false,
// 'slug' => null,
// ), $atts ) );
$content_post = get_posts(array(
'name' => $slug,
'posts_per_page' => 1,
'post_type' => 'elementor_library',
'post_status' => 'publish'
));
if (array_key_exists(0, $content_post) == true) {
$id = $content_post[0]->ID;
return $id;
}
}
//add_shortcode( 'tf-elementor-template', 'flat_get_post_page_content' );
}