• Hi, thank you for the great plugin!

    I would like to create a cron job with PHP in which post types are switched. Do you have an example for me how that would look like in PHP?

    For example something like that:

    require_once(ABSPATH . ‘wp-content/plugins/post-type-switcher/post-type-switcher.php’);
    $post_ID =223;
    $post_type =’archive’;
    set_post_type( $post_id, $post_type );

    Thanks!

  • The topic ‘PHP statement for cron job post type switch’ is closed to new replies.