humanmade / protected-embeds

A drop-in replacement for WordPress.com protected embeds
11 stars 4 forks source link

Is there an interface available for creating protected embeds? #1

Closed goldenapples closed 8 years ago

goldenapples commented 8 years ago

It would be good to be able to call something like Protected_Embeds\Embed::create( $html );, which should create the post, insert it into the database, and return the shortcode string for post content.

joehoyle commented 8 years ago

:+1: create just needs implementing, which would probably return the Embed object, which you could call get_html() on

goldenapples commented 8 years ago

:rocket: