The server doesn’t know what the client is doing with the output and as such, you’re limited in what you can assume. You may or may not have params sent in the request, referer, current uri and headers.
$_REQUEST['embed_act']$_SERVER['HTTP_REFERER']$_SERVER['REQUEST_URI']get_headers()
On the JS side, it might be possible.
if(self==top)
{
//...
}
if( parent==top )
{
//...
}
Related Posts:
- Youtube – Embed as IFRAME
- Embed Post in external page
- Youtube iframe embed keeps disappearing from page
- WordPress Mediaelement – Youtube Videos Embed Options
- How can I create iframe/embeddable content from my WordPress site?
- How do I hide related videos at the end of a YouTube playlist embed code?
- How do I embed youtube videos with https instead of http in the URL?
- WP Oembed not passing through the “autoplay=1” variable
- WordPress Gutenberg Embed Blocks Are Not Responsive
- Embed iframe or html page into dashboard widget
- Give Author users the right to embed
- Embed .mov file via ‘Add Media’ not working
- How to change thumbnail of embedded Youtube video?
- How to add new embed handler not supported by oembed
- How to change WordPress embedded player size or show just the play button
- wp_embed_register_handler is not working
- use of tag into wordpress
- Any way to use a custom Parameter for vimeo embed without using an iframe?
- Is it possible to modify the default YouTube embed attributes string?
- ted talks embed fixed, but can’t control size
- Embed WordPress Admin in an iframe
- How to embed a WordPress article on another website [closed]
- Youtube parameters within WordPress embed code?
- How to create a static player top or bottom of wordpress?
- Which HTTP headers to use for subdomain embedding?
- Audio Playlists – Multiple file type support?
- Vimeo video embeds doesnt seem to work with ACF [closed]
- vimeo/youtube video embed with thumbnails
- Embed YouTube video from custom field value
- Search XML file from within WordPress?
- WordPress keeps altering my embed code
- Can I use wp_oembed_get to detect a valid embeddable link or is there a better way to do so?
- disable video URL auto-embedding for a part of the post
- Embeding YouTube video via a template function throws iframe cross-domain policy error
- extra text in Vimeo Embedded videos
- How can I override print_embed_sharing_dialog() in WordPress 4.5
- Video Embed with Captions in Turkish
- How can I force oEmbed to display fixed height & width dimensions?
- YouTube embed parameters?
- Embed Youtube video link in wordpress editor
- WordPress get embedded/attachment video
- pdf (25MB) – how to display and enable download?
- want to stop stripping out from my post content
- How to auto embedded youtube with wp_insert_post()
- Is there a way to create embed codes from wordpress/buddypress content?
- Display total questions of Moodle in WordPress [closed]
- How to display real-time data which is stored in an IBM Cloud web app
- Embedding custom posts with REST API
- How to Implement Responsive YouTube Video Framing? [closed]
- How to change the way wp_embed handles only youtube videos?
- How to embed YouTube videos in posts without adding suggested videos at the end?
- How To Display Content from a website on wordpress page?
- How to make my new theme read [youtube id=”id of the video here” width=”600″ height=”350″]?
- How to put an external object into WordPress to that occupies most of the available space?
- Div around YouTube video
- Embedding Youtube video on comments
- Reusing header.php from Yii application
- Add custom parameters in SoundClound embed
- How to make enqueue_embed_scripts work with the embed_template filter
- How do I not embed the SoundCloud player? I just want the link
- Add Watermark to PDF’s of logged in user in WordPress upon upload to media library [closed]
- YouTube embeded video will not resize (only full screen responsive) [closed]
- How can I embed an Excel spreadsheet that allows users to edit certain fields, but is still “read-only”
- TED talk embedded videos cut off by sidebar
- Help with jot form pro embed code
- changes after I save a post
- Embed a Google Docs in WordPress?
- Is there a way to do nested embeds in the REST API?
- embed via wp_embed_register_handler only works in front-end
- Add class and change src type inside wp_oembed_get
- Code playground (like CodePen) inside WordPress?
- Embed Latest Track (Dynamic Updating) SoundCloud
- Embed wikipedia page in WordPress?
- Include User ID in iFrame URL
- Embed post wont work on custom post type
- How to embed my latest WordPress post into an external page
- [embed]Using WordPress 5.5.1 there is no embed option after the video is uploaded
- Embedded videos not displaying on page
- Disable automatic embed links
- Embed Microsoft Forms into WordPress page
- How to disable URL preview in WordPress comments
- Nofollow attribute in WordPress link embed code?
- Why most embed feature doesn’t work?
- Remove wordpress embed share icon?
- ‘[code]’ shortcode to markup programming code does not work
- Embedding multiple song players on one page without it effecting the load time
- Adding an official oEmbed provider to WordPress
- CartoDB embedding doesn’t work
- My WordPress editor deletes all characters after emoji – how can I fix this?
- Do_Shortcode not working for Embed any tweet
- How to embed php page from separate site
- Increase size of Google Document Site Wide [closed]
- How to have embedded images from smugmug take full width of blog posts
- WordPress: embedding last posted video
- Enclosures being deleted “automatically”
- What purpose does /embed/ URL have and how to avoid SEO problems?
- How to anchor to embed video
- Embed links work on new page creation, not on edit
- add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
- Youtube embedded videos unavailable