PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
siteorigin-panels
/
compat
<?php /** * SiteOrigin Page Builder compatibility with Popup Maker. * * Popup Maker uses a custom `the_content` filter `pum_popup_content`. * This compatibility function ensures that the Page Builder content is * displayed correctly within Popup Maker popups. * * @param string $content The original content of the popup. * @param int $popup_id The ID of the popup. * * @return string The modified content, or the original content. */ function siteorigin_popup_maker( $content, $popup_id ) { if ( empty( $popup_id ) || ! is_numeric( $popup_id ) ) { return $content; } $panels_data = get_post_meta( (int) $popup_id, 'panels_data', true ); if ( empty( $panels_data ) ) { return $content; } $panel_content = SiteOrigin_Panels::renderer()->render( $popup_id, true, $panels_data ); return $panel_content ? $panel_content : $content; } add_filter( 'pum_popup_content', 'siteorigin_popup_maker', 10, 2 );
[-] gravity-forms.php
[edit]
[-] livemesh.php
[edit]
[-] layout-block.php
[edit]
[-] vantage.php
[edit]
[-] acf-widgets.php
[edit]
[-] seopress.php
[edit]
[-] yoast.php
[edit]
[-] jetpack.php
[edit]
[-] yikes.php
[edit]
[+]
js
[-] seo.php
[edit]
[-] polylang.php
[edit]
[-] pagelayer.php
[edit]
[-] rank-math.php
[edit]
[-] widget-options.php
[edit]
[-] popup-maker.php
[edit]
[-] lazy-load-backgrounds.php
[edit]
[+]
..
[-] aioseo.php
[edit]
[-] amp.php
[edit]
[-] events-manager.php
[edit]