Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('et_pb_module_shortcode_attributes', 'galleria_divi_acf', 20, 3);
- function galleria_divi_acf($props, $atts, $slug) {
- $gallery_module_slugs = array('et_pb_gallery');
- if (!in_array($slug, $gallery_module_slugs)) {
- return $props;
- }
- if is_singular( 'struttura' ) {
- $props['gallery_ids'] = get_field('galleria_struttura', false, false);
- return $props;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement