• I love your plugin, but I want to use it only for one custom post type and not the others, but your plugin enables drag & drop for all custom post types, by default. I was wondering how I can disable drag & drop for all custom post types except for one.

    • This topic was modified 2 years, 4 months ago by mcho.
    • This topic was modified 2 years, 4 months ago by mcho.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter mcho

    (@mcho)

    Hi, I looked at your codes and realized that you don’t show any post types that are hierarchical in the settings, but you enable the drag&drop for any post type when “hide” is not checked. Shouldn’t the follow codes include !isset?

    Your current code for function archiveDragDrop():

    //check if post type is sortable
    if(isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show')
      return;

    What I propose:

    //check if post type is sortable
    if(!isset($options['show_reorder_interfaces'][$screen->post_type]) || isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show')
      return;
    • This reply was modified 2 years, 4 months ago by mcho.
Viewing 1 replies (of 1 total)
  • The topic ‘Can I disable drag & drop for all custom post types except one?’ is closed to new replies.