This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example filters and hooks for Livemesh SiteOrigin Widgets | |
add_filter('lsow_post_item_media_title_html', 'mytheme_post_item_media_title_html', 10, 3); | |
function mytheme_post_item_media_title_html($output, $module) { | |
$output = ''; | |
if ($module->settings['display_title_on_thumbnail']) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example filters and hooks for Livemesh Addons for WPBakery Page Builder | |
add_filter('lvca_gallery_entry_text', 'mytheme_add_inline_title_for_images', 10, 3); | |
function mytheme_add_inline_title_for_images($entry_text, $item, $settings) { | |
$link = NULL; | |
if (!empty($item['link'])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('labb_block_module_11', 'mytheme_modify_module_11', 10, 2); | |
function mytheme_modify_module_11($output, $module) { | |
ob_start(); | |
?> | |
<article | |
class="labb-module-11 <?php echo $module->get_module_classes(); ?> <?php echo join(' ', get_post_class('', $module->post_ID)); ?>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('lae_posts_carousel_entry_excerpt', 'mytheme_modify_posts_carousel_excerpt1', 10, 3); | |
function mytheme_modify_posts_carousel_excerpt1($excerpt, $post_id, $settings) { | |
$output = wp_trim_words($excerpt, 40, '...'); | |
return $output; |