diff --git a/inc/class-spotim-metabox.php b/inc/class-spotim-metabox.php index 1612b7a..0b3227d 100644 --- a/inc/class-spotim-metabox.php +++ b/inc/class-spotim-metabox.php @@ -151,7 +151,12 @@ public function render_metabox( $post ) { echo ' '; echo ' '; - echo ' '; + // Check if recirculation is disabled globally + $hide_recirculation = ''; + if ( 'none' === self::$options->get( 'rc_embed_method' ) ) + $hide_recirculation = 'style="display: none;"'; + + echo ' '; echo ' '; echo ' '; echo '