I am trying to use add_filter( 'avf_slideshow_config', 'my_avf_slideshow_config' ); to set the video_loop property of a color section background video to false (it’s hardcoded to true in enfold/config-templatebuilder/avia-shortcodes/section.php:1280 and filtered in enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:93.)
The filter works, but on lines 137 and 139 of enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php, the following conditional:
//if we got subslides overwrite the id array
if( ! empty( $config['content'] ) )
{
$this->extract_subslides( $config['content'] );
}
should be coded as
//if we got subslides overwrite the id array
if( ! empty( $this->config['content'] ) )
{
$this->extract_subslides( $this->config['content'] );
}
The conditional and subsequent extract_subslides() call is using the raw $config value passed into the constructor rather than the filtered $this->config.
Hey Bullfrog245,
What PHP version are you using?
Best regards,
Nikko
I’m using PHP 7.3
Hi Bullfrog245,
Thanks for pointing it out. :)
We’ll forward it to our devs.
I apologize for misreading it.
Best regards,
Nikko
