Skip to content

Function

Render the review request.

tml_admin_review_notice( )

Source

function tml_admin_review_notice() {
    if ( ! tml_admin_review_request_is_due() ) {
        return;
    }
    ?>
    <div class="notice notice-info tml-review-notice is-dismissible" data-nonce="<?php echo esc_attr( wp_create_nonce( 'tml-review-request' ) ); ?>">
        <p><?php esc_html_e( 'You have been using Theme My Login for a while now. If it has been useful, would you leave a review on WordPress.org? It helps other people find it.', 'theme-my-login' ); ?></p>
        <p>
            <a class="button button-primary" href="https://wordpress.org/support/plugin/theme-my-login/reviews/#new-post" target="_blank" data-choice="reviewed"><?php esc_html_e( 'Leave a Review', 'theme-my-login' ); ?></a>
            <a class="button" href="#" data-choice="later"><?php esc_html_e( 'Maybe Later', 'theme-my-login' ); ?></a>
            <a class="button-link" href="#" data-choice="never"><?php esc_html_e( 'Don&#8217;t Ask Again', 'theme-my-login' ); ?></a>
        </p>
    </div>
    <?php
}

Uses

Used by

Changelog

VersionDescription
7.3 Introduced.