• What’s the best way to tweak this plugin to work with different post types? For instance I want to use it for “jobs” instead of “posts”.

Viewing 1 replies (of 1 total)
  • Thread Starter Creative Slice

    (@creativeslice)

    I was able to get it to work by adjusting lines 171-173 of content-expiration-and-redirect.php to this:

    if( !$post->post_type OR ( $post->post_type != 'job' AND $post->post_type != 'post' ) ) return;
    $screen = get_current_screen();
    if( $screen->base != 'post' ) return;

    Is there an action or some other method I could use to do this without hacking the core plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Types?’ is closed to new replies.