• Resolved countrymedia

    (@countrymedia)


    Hello, will it work to show an image instead of text when a user passes the click limit?

    I’d like to add this to show an image:

    return ‘<div class=”error”></div>’;

    instead of this:

    return ‘<div class=”error”>You have been blocked from seeing ads.</div>’;

    Thanks,

    Erik

Viewing 1 replies (of 1 total)
  • Plugin Author iSaumya

    (@isaumya)

    Yah, you can show whatever you want to show. Just do like this ->

    if( aicp_can_see_ads() ) {
    	// ......
    } else {
    	return '<div class="error"><img src="./path-of-img.jpg" /></div>';
    }

    OR

    if( aicp_can_see_ads() ) {
    	// ......
    } else {
    	return '<div class="error">' . wp_get_attachment_image( $attachment_id, 'thumbnail', false, '' ) . '</div>';
    }

    However you wanna use it… ?? Enjoy…

Viewing 1 replies (of 1 total)
  • The topic ‘Showing an image instead of text when user passes click limit’ is closed to new replies.