I’m trying to make condition that checks if the page is embeded with iFrame, but all the ways I know won’t work. I’m embeding Woocommerce single product page, on custom template where only necessary scripts and styles are loaded (template is loaded depending on string query). The problem is that, I want to change “add […]
I am trying to embed the admin “new post” WordPress page into an iframe: <iframe height=”500px” frameborder=”0″ width=”740px” src=”my_wordpress_domain/wp-admin/post-new.php”/> For some reason the iframe loads a blank page. The link itself works in a separate tab and so does the wordpress home page. Is this a security issue, if so, how can I circumvent it?
I’m trying to customize the look of the iframe that pops up (media uploader). I’ve manage to remove some fields etc, but I cannot re-size the frame. Does anybody know how to do this?
In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( ‘post_title’ => $_POST[‘title’], ‘post_content’ => $_POST[‘content’], ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ‘post_author’ […]
Basically, I have a custom tinymce button which opens a thickbox window in iframe mode. Is there a way to access the tinymce from the iframe? WordPress media uploader seems to do it somehow. Stuff like $(‘#content’, window.parent.document).tinymce().getContent() does not work. PS. If that’s impossible, I’ll have to do use the tinymce default popup window, […]
A client of mine has just had 200 posts injected by malicious scripts and iframes. The website is now all cleared. They were put in the content by the user updating the post/page as my clients computer was infected. (Though only in the TinyMCE editor – not any of the other custom fields assigned to […]
I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow iframe tags and the src, height, and width attributes in the iframe tags: $allowedposttags[‘iframe’] = array( ‘src’ => array(), ‘height’ => array(), ‘width’ […]
I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX request from finishing. When the button click is registered, JS is meant to grab the value […]
I am using wp_cron to auto grab posts from a remote website and save them in my wp db. NOTICE! I am executing my code from my plugin, not from my template functions.php or somewhere else. I have my own validation of grabbed content to prevent malicious code etc. so turning off security validation in […]