We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36fa70c commit a17cf24Copy full SHA for a17cf24
1 file changed
includes/lite-site/class-lite-site.php
@@ -20,6 +20,11 @@ class Lite_Site {
20
* Initialize the lite site functionality
21
*/
22
public static function init() {
23
+ // The standalone Newspack Lite Site plugin supersedes this module, so skip initialization to avoid conflicts.
24
+ if ( defined( 'NEWSPACK_LITE_SITE_PLUGIN_FILE' ) ) {
25
+ return;
26
+ }
27
+
28
// Only register rewrite rules if the feature is enabled.
29
if ( self::is_enabled() ) {
30
add_action( 'init', [ __CLASS__, 'register_rewrite_rules' ] );
@@ -525,5 +530,4 @@ function gtag(){dataLayer.push(arguments);}
525
530
}
526
531
527
532
528
-// Initialize the class.
529
-Lite_Site::init();
533
+add_action( 'plugins_loaded', [ Lite_Site::class, 'init' ] );
0 commit comments