admin->isTableOfContentsScreen() ) { return; } $dismissed = get_user_meta( get_current_user_id(), '_aioseo_table_of_contents_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 ( ! aioseoTableOfContents()->internalOptions->internal->firstActivated ) { aioseoTableOfContents()->internalOptions->internal->firstActivated = time(); } $activated = aioseoTableOfContents()->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 ("Table of Contents Plus"). __( '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?', 'table-of-contents-plus' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded '' . esc_html( AIOSEO_TABLE_OF_CONTENTS_PLUGIN_NAME ) . '' ); // Translators: 1 - The plugin name ("Table of Contents Plus"). $string9 = __( 'Ok, you deserve it', 'table-of-contents-plus' ); $string10 = __( 'Nope, maybe later', 'table-of-contents-plus' ); $string11 = __( 'I already did', 'table-of-contents-plus' ); ?>

 •   •