Skip to content

Instantly share code, notes, and snippets.

@Pross
Created November 16, 2021 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/a19b926e0bad1467b67582167ddd3ced to your computer and use it in GitHub Desktop.
Save Pross/a19b926e0bad1467b67582167ddd3ced to your computer and use it in GitHub Desktop.
FLBuilderSettingsCompatHelper example.
<?php // added this to make the styling work
class FLBuilderSettingsCompatRowVideo extends FLBuilderSettingsCompatHelper {
public function filter_settings( $settings ) {
$settings->bg_video_fallback_src = str_replace( 'https://smithcountylumber.com', 'https://smithcountylumber.b-cdn.net', $settings->bg_video_fallback_src );
return $settings;
}
}
add_action( 'init', function() {
FLBuilderSettingsCompat::register_helper( 'row', 'FLBuilderSettingsCompatRowVideo' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment