// Custom Feed function add_custom_rss_feed() { add_feed('revive', 'custom_rss_feed_template'); } add_action('init', 'add_custom_rss_feed'); function custom_rss_feed_template() { get_template_part('rss', 'revive'); } // Add a custom interval for 4.5 hours function custom_cron_schedules($schedules) { $schedules['four_half_hours'] = array( 'interval' => 16200, // 4.5 hours in seconds 'display' => __('Every 4.5 Hours') ); return $schedules; } add_filter('cron_schedules', 'custom_cron_schedules'); // Schedule an event to refresh the custom RSS feed every 4.5 hours if (!wp_next_scheduled('refresh_old_posts_feed')) { wp_schedule_event(time(), 'four_half_hours', 'refresh_old_posts_feed'); } else { $timestamp = wp_next_scheduled('refresh_old_posts_feed'); wp_unschedule_event($timestamp, 'refresh_old_posts_feed'); wp_schedule_event(time(), 'four_half_hours', 'refresh_old_posts_feed'); } add_action('refresh_old_posts_feed', 'generate_old_posts_feed'); function generate_old_posts_feed() { // Rotate the post IDs in the option $stored_posts = get_option('last_3_posts'); if (!$stored_posts || count($stored_posts) < 3) { // Initialize with 3 random posts if not already set $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'orderby' => 'rand', 'date_query' => array( 'before' => date('Y-m-d H:i:s', strtotime('-1 month')) ) ); $query = new WP_Query($args); $stored_posts = wp_list_pluck($query->posts, 'ID'); update_option('last_3_posts', $stored_posts); } else { // Rotate the first post out and add a new one array_shift($stored_posts); $args = array( 'post_type' => 'post', 'posts_per_page' => 1, 'orderby' => 'rand', 'date_query' => array( 'before' => date('Y-m-d H:i:s', strtotime('-1 month')) ), 'post__not_in' => $stored_posts ); $query = new WP_Query($args); $new_post_id = $query->posts[0]->ID; $stored_posts[] = $new_post_id; update_option('last_3_posts', $stored_posts); } } // Debugging function to log feed activity function log_feed_activity($message) { $log_file = ABSPATH . 'wp-content/debug.log'; $current_time = date('Y-m-d H:i:s'); file_put_contents($log_file, "$current_time - $message\n", FILE_APPEND); } // Include the last shared post title in the log function log_last_shared_post($post_title) { log_feed_activity("Generated feed content for post: $post_title"); } Johnny Depp regresará a Piratas del Caribe • Osito Barrigón

Johnny Depp regresará a Piratas del Caribe

ob.com
1 Min Lectura

Johnny Depp regresará a la saga de películas de Piratas del Caribe en su papel del Capitán Jack Sparrow.

Medios del Reino Unido como: The Sun y Mirror UK reportaron que el actor volverá a la franquicia de Disney muy pronto, pues iniciando 2023 ya se tiene rodaje en puerta.

De acuerdo con los reportes, Depp regresará cinco años después de que fuera despedido de la franquicia porque se planeaba cambiar el proyecto con una “nueva energía”.

Sin embargo, surgió una nueva oportunidad para Johnny Depp con un contrato para filmar una sexta película y una serie para Disney+ tras un acuerdo de 300 millones de dólares.

Medios británicos reportaron que las filmaciones se realizarán en Reino Unido a principios de febrero del próximo año.

Disney volvió a manifestar su interés en contratar al histrión tras el triunfo en el juicio contra su ex esposa Amber Heard.

Hasta el momento se mantienen en secreto los detalles sobre los próximos proyectos de Piratas del Caribe, incluso se reportó que aun no se tiene un director designado para la cinta, que podría llevar el título de “A Day At The Sea” (Un Día en el Mar).

Comparte Este Artículo
Por ob.com
Seguir:
"A tubby, little cubby all stuffed with fluff".
Deja un comentario