admin->isBlcScreen() ) { return; } // Make sure the user has connected/is licensed. if ( ! aioseoBrokenLinkChecker()->license->isActive() ) { return; } $dismissed = get_user_meta( get_current_user_id(), '_aioseo_blc_plugin_review_dismissed', true ); if ( '3' === $dismissed || '4' === $dismissed ) { return; } if ( ! empty( $dismissed ) && $dismissed > time() ) { return; } // Show once plugin has been active for 2 weeks. if ( ! aioseoBrokenLinkChecker()->internalOptions->internal->firstActivated ) { aioseoBrokenLinkChecker()->internalOptions->internal->firstActivated = time(); } $activated = aioseoBrokenLinkChecker()->internalOptions->internal->firstActivated( time() ); if ( $activated > strtotime( '-2 weeks' ) ) { return; } $this->showNotice(); // Print the script to the footer. add_action( 'admin_footer', [ $this, 'printScript' ] ); } /** * Actually show the review plugin 2.0. * * @since 1.2.0 * * @return void */ public function showNotice() { $string1 = sprintf( // Translators: 1 - The plugin name ("Broken Link Checker"). __( 'Hey, we noticed you have been using %1$s for some time - that’s awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?', 'broken-link-checker-seo' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded '' . esc_html( AIOSEO_BROKEN_LINK_CHECKER_PLUGIN_NAME ) . '' ); // Translators: 1 - The plugin name ("Broken Link Checker"). $string9 = __( 'Ok, you deserve it', 'broken-link-checker-seo' ); $string10 = __( 'Nope, maybe later', 'broken-link-checker-seo' ); $string11 = __( 'I already did', 'broken-link-checker-seo' ); ?>