custom dashboard widget if then statement

If I wanted to play a video if a user had certain capabilities what code would I insert? I don't know code so this is my piecemeal effort. I removed the ?php tags and selected execute content.

if (current_user_can('edit_pages')){
<script type="text/javascript" src=""></script>
<script type="text/javascript">

  • aecnu

    Greetings Atlanta,

    Thank you for the great custom coding question which is beyond the scope of the support we provide here at this time though we do try to help if we can.

    With that said I will see if I can get a lead developer in here with his invaluable insight into coding for his advice/advise for us.

    Alternatively, you could see if there's a developer available at wpmu jobs who could get onto it right this minute

    Though this may take a bit longer then a normal ticket, I will try to get him in here asap.

    Cheers, Joe