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