WordPress Add Thickbox on click link

make anchor tag where you want to open thickbox popup same as below

<a href='”.get_site_Url().”/wp-admin/admin-ajax.php?action=YOUR_FUNCTION_NAME_HERE&TB_iframe=true&height=400&width=500′ class=’thickbox’ > Click here </a>

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s