How can I make uploaded images in the editor load with HTTPS?

This should do it: add_action(‘admin_notices’, ‘https_the_content’); function https_the_content() { global $post; if(!$post->post_content) return; //change src to use the current url scheme $post->post_content = str_replace(array(“src=\”http://”, “src=”http://”), array(“src=\”//”, “src=”https://”), $post->post_content); return $post->post_content; }

Is there a way to have the view link on manage posts page to open in a new window or tab?

Late answer WP core offers a function for that case, that makes it much easier and future proof: Simply map it on each item. Wrapped up in a plugin Best used as mu-plugin. <?php /* Plugin Name: (#32093) »kaiser« Open “action”-links in post type list screens in new windows/tabs */ function wpse32093_link_target_blank( $actions, $post ) … Read more

front end editing using iFrames, best approach?

Using a custom template and wp_update_post you should be able to build your own edit/add post pages in your sites frontend. There are also various plugins available that attempt to do similar things. iFrames can be done, but it will need some checks in functions.php to check for a get variable and add conditional stylesheets … Read more

wp_schedule_event only when admin is visited

In your event callback function check to see if the user id the admin then run the function else just reschedule it. So using the example from the codex’s page you linked in the question it would be something like this: function my_activation() { if ( !wp_next_scheduled( ‘my_hourly_event’ ) ) { wp_schedule_event(time(), ‘hourly’, ‘my_hourly_event’); } … Read more

Remove Admin sidebar link

function remove_featured_tax_menu() { remove_submenu_page( ‘edit.php?post_type=movies’, ‘edit-tags.php?taxonomy=featured&amp;post_type=movies’ ); } add_action( ‘admin_menu’, ‘remove_featured_tax_menu’ );