admin->isBlcScreen() ) { return; } // Make sure the user is not connected/licensed. if ( aioseoBrokenLinkChecker()->license->isActive() ) { return; } $dismissed = get_user_meta( get_current_user_id(), '_aioseo_blc_not_connected', true ); if ( ! empty( $dismissed ) && $dismissed > time() ) { return; } $this->showNotice(); add_action( 'admin_footer', [ $this, 'printScript' ] ); } /** * Actually show the review plugin 2.0. * * @since 1.2.1 * * @return void */ public function showNotice() { $string = sprintf( // Translators: 1 - The plugin name ("Broken Link Checker"). __( 'Your site is not connected with %1$s. %2$sConnect now%3$s to start scanning for broken links and fix them to improve your SEO.', 'aioseo-broken-link-checker' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded '' . esc_html( AIOSEO_BROKEN_LINK_CHECKER_PLUGIN_NAME ) . '', '', '' ); ?>