Skip to content

Compatibility code snippets

Jory Hogeveen edited this page Nov 5, 2019 · 3 revisions

Coming Soon plugin integration

https://wordpress.org/plugins/coming-soon/
This disables the comming soon page if a view is active:
This snippet needs to be added as a must-use plugin.

<?php

add_filter( 'seed_csp4_get_settings', function( $settings ) {
	if ( ! is_admin() && did_action( 'vaa_view_admin_as_do_view' ) ) {
		$settings['status'] = 0; // Disable Coming Soon page if view is active.
	}
	return $settings;
} );