Skip to content

Commit

Permalink
Structured Data: Don't show in Coming Soon mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Jan 22, 2024
1 parent 0dd6b54 commit 5d0d8e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public_html/wp-content/mu-plugins/structured-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ function add_event_data(): void {
return;
}

$coming_soon_settings = $GLOBALS['WCCSP_Settings']->get_settings();

if ( 'off' !== $coming_soon_settings['enabled'] ) {
return;
}

$wordcamp = get_wordcamp_post();

if ( ! $wordcamp ) {
Expand Down

0 comments on commit 5d0d8e9

Please sign in to comment.