PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
themify-builder
/
includes
/
plugin-compat
<?php /** * Builder Plugin Compatibility Code * * @package Themify_Builder * @subpackage Themify_Builder/classes */ class Themify_Builder_Plugin_Compat_GalleryCustomLinks { static function init() { add_filter( 'themify_builder_image_link_before', array( __CLASS__, 'wp_gallery_custom_links' ), 10, 3 ); } /** * Compatibility with WP Gallery Custom Links plugin * @link https://wordpress.org/plugins/wp-gallery-custom-links * Apply Link and Target fields to gallery images in Grid layout * * @return string */ public static function wp_gallery_custom_links(string $link_before, $image, $settings ):string { $attachment_meta = get_post_meta( $image->ID, '_gallery_link_url', true ); if( $attachment_meta ) { $link_before = preg_replace( '/href="(.*)"/', 'href="' . $attachment_meta . '"', $link_before ); } $attachment_meta = get_post_meta( $image->ID, '_gallery_link_target', true ); if( $attachment_meta ) { $link_before = str_replace( '>', ' target="' . $attachment_meta . '">', $link_before ); } return $link_before; } }
[+]
..
[-] eventsmadeeasy.php
[edit]
[-] relatedposts.php
[edit]
[-] statcounter.php
[edit]
[-] polylang2.php
[edit]
[-] pmpro.php
[edit]
[-] enviragallery.php
[edit]
[+]
css
[-] autooptimize.php
[edit]
[-] members.php
[edit]
[-] gallerycustomlinks.php
[edit]
[-] kadence.php
[edit]
[-] armember.php
[edit]
[-] smartcookie.php
[edit]
[-] wcmembership.php
[edit]
[-] woocommerce.php
[edit]
[+]
js
[-] maxgalleriamedialibpro.php
[edit]
[-] bwpminify.php
[edit]
[-] essentialgrid.php
[edit]
[-] wpml.php
[edit]
[-] facetwp.php
[edit]
[-] cachepress.php
[edit]
[-] eventscalendar.php
[edit]
[-] wpjobmanager.php
[edit]
[-] rankmath.php
[edit]
[-] duplicateposts.php
[edit]
[-] wpml-translation.php
[edit]
[-] dokan.php
[edit]
[-] tutor.php
[edit]
[-] thrive.php
[edit]
[-] eventtickets.php
[edit]
[-] wpcourseware.php
[edit]