The iframe source URL gets passed through a filter with a hook name of “uploading_iframe_src”. So you can change the source in a plugin by hooking that filter and changing the URL to whatever you want.
Thread Starter
flymy
(@flymy)
Doesn’t work. For example :
function remove_crap_inlnupl() {
$uploading_iframe_src = apply_filters('uploading_iframe_src', 'http://www.yahoo.com');
}
add_filter('uploading_iframe_src', 'remove_crap_inlnupl');
If you use this code, all you get is that post.php won’t load fully 🙁
Any other idea?
What the heck were you trying to do there? That’s not how you use a filter.
Try something more like this instead:
function change_upload_src($src) {
// $src is the original URL if you need it for anything
return 'http://www.yahoo.com';
}
add_filter('uploading_iframe_src', 'change_upload_src');
Read this for more information:
http://codex.ww.wp.xz.cn/Plugin_API#Filters
Thread Starter
flymy
(@flymy)
Now, to the harddest part :
How do make the upload page of old-style-upload plugin, to be displayed inside the iframe???
Using the link http://…/wp-admin/admin.php?page=filosofo-old-style-upload_he.php is not an option, because it’s not really comfortable.
Any idea please?
Help yourself. Why not ask the author of the plugin you’re talking about for help?
We don’t do plugins here, for the most part, because we don’t know them all. Sure, the more well known plugins get answers, but I’ve never heard of what you’re talking about, and I doubt most other people who read these forums have either.
So you’re better off going and asking the plugin’s author. Much better than bumping threads here, which will get you banned if you don’t watch it.
Thread Starter
flymy
(@flymy)
Thank for your great help.
I did talk the author of the plugin. He wanted 50 USD for his help. Due to lack of funds, obviously I came here for help.
If you don’t want/can’t to help, dont bother to reply.