Title: andyhung's Replies | WordPress.org

---

# andyhung

  [  ](https://wordpress.org/support/users/andyhung/)

 *   [Profile](https://wordpress.org/support/users/andyhung/)
 *   [Topics Started](https://wordpress.org/support/users/andyhung/topics/)
 *   [Replies Created](https://wordpress.org/support/users/andyhung/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/andyhung/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/andyhung/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/andyhung/engagements/)
 *   [Favorites](https://wordpress.org/support/users/andyhung/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress HTTPS (SSL)] [Plugin: WordPress HTTPS (SSL)] Force SSL on old posts](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-force-ssl-on-old-posts/)
 *  [andyhung](https://wordpress.org/support/users/andyhung/)
 * (@andyhung)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-force-ssl-on-old-posts/#post-2734638)
 * hi Mvied,
 * > $args = array(
   >  ‘numberposts’ => -1 ); $posts = get_posts($args); foreach( 
   > $posts as $post ) { update_post_meta($post->ID, ‘force_ssl’, ‘1’); }
 * if i want to enforcing SSL on old posts every time I activate this plugin, where
   should i put these codes in wordpress-https.php?
 * thanks

Viewing 1 replies (of 1 total)