Last active
January 14, 2020 08:18
-
-
Save giucu91/fce8327f580ea0ed734cff42b3823ebe to your computer and use it in GitHub Desktop.
[Modula] - Remove captions from lightbox
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( 'modula_shortcode_item_data', 'photoguy_link_title', 99, 3 ); | |
function photoguy_link_title( $item_data, $item, $settings ){ | |
if( isset( $item_data['link_attributes']['title'] ) ){ | |
unset( $item_data['link_attributes']['title'] ); | |
} | |
if( isset( $item_data['link_attributes']['data-sub-html'] ) ){ | |
unset( $item_data['link_attributes']['data-sub-html'] ); | |
} | |
if( isset( $item_data['link_attributes']['data-title'] ) ){ | |
unset( $item_data['link_attributes']['data-title'] ); | |
} | |
return $item_data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment