I want to add a YouTube video to a widget via wp-cli. The YouTube video is basically an iframe. When I execute the following command:
wp-cli widget update text-1 --text='<iframe src="http://example.com"></iframe>'
the text of the widget is empty. It seems either wp-cli or wordpress is stripping away the iframe tags. Via the wordpress backend it is possible to add arbitrary html to a text widget. But via wp-cli it does not work.
Is there some command line option or workaround? Going directly via the DB with MySQL would be the last option.
Thx in advance!