WP Dashboard video modal on load
I was able to create a dashboard modal using add_thickbox();
, triggered by a link:
a href="#TB_inline?width=600height=550inlineId=my-content-id" class="thickbox"View my inline content!/a
div id="my-content-id" style="display:none;"
p
This is my hidden content! It will appear in ThickBox when the link is clicked.
/p
But actually I want it to work like this:
1) When the logged in user is redirected to the dashboard for the first time (and only the first time), the modal should appear automatically, with a button to remove the modal if user don't want to see the movie (please see the following screenshot):
Can someone help me with this implementation?
Thank you very much.