• Kreezxil

    (@itscoolreally)


    After installing your plugin to give it a go, and then hitting the “hide notice” link, I noticed that it never hides the notice which is displayed as follows:

    Thanks for using Auto Featured Image from Title LITE!
    Use discount code LITE2PRO to get 30% off the PRO version! | Hide Notice

    Make your “hide notice” link truly work and I’ll redact this statement and make it 5 stars.

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chris Huff

    (@brochris)

    Sorry that the notice is not going away for you. Not sure the reason for that, it goes away in all of my testing.

    If you’re comfortable editing the plugin’s code, you can simply delete this chunk of code from the plugin, and the notice will go away.

    // Display a notice that can be dismissed
    function afift_lite_admin_notice() {
        global $current_user;
        $user_id = $current_user->ID;
    
        // Check that the user hasn't already clicked to ignore the message
        if ( ! get_user_meta($user_id, 'afift_lite2pro_ignore_notice') ) {
            echo '<div class="updated"><p>';
            printf(__('<strong>Thanks for using Auto Featured Image from Title LITE!</strong><br />Use discount code LITE2PRO to get 30% off the <a href="http://designsbychris.com/auto-featured-image-from-title">PRO version</a>! | <a href="%1$s" rel="nofollow">Hide Notice</a>'), '?' . http_build_query(array_merge($params, array('afift_lite2pro_ignore_notice'=>'0'))));
            echo "</p></div>";
            }
        }
    
    add_action('admin_notices', 'afift_lite_admin_notice');

    Again, sorry for the trouble.

    Plugin Author Chris Huff

    (@brochris)

    I updated the plugin today, and was able to fix the “hide notice” link. Thanks for pointing it out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Your plugin is garbage!’ is closed to new replies.