When they search, make sure they find you!

Hooks & Filters

ID Post Order provides one filter that lets you control which post types support drag-and-drop ordering.

idpo_enabled_post_types

Filters the array of post type names that the plugin adds ordering to. By default, the plugin enables ordering for every post type that has show_ui set to true, excluding attachments.

Parameters

  • $post_types (string[]) — Array of post type slugs.

Example: Disable ordering for a specific post type

add_filter( 'idpo_enabled_post_types', function ( $types ) {
    return array_diff( $types, array( 'product' ) );
} );

This removes WooCommerce products from the list of orderable post types. The Order column and drag-and-drop will no longer appear on the Products screen.

Example: Limit ordering to specific post types only

add_filter( 'idpo_enabled_post_types', function ( $types ) {
    return array( 'post', 'page' );
} );

This restricts ordering to only Posts and Pages, ignoring all custom post types.