WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#21861 closed enhancement (duplicate)

Internal linker needs a filter on arguments for query

Reported by: CoenJacobs Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

There is currently no way to change the arguments of the query for the internal linker. This limits the modifications you can do on the list of posts that is displayed. I'd like to prevent certain post types (used in background only) from showing up in that list.

Attachments (1)

21861.diff (490 bytes) - added by CoenJacobs 7 years ago.
Basic implementation of a filter for the arguments

Download all attachments as: .zip

Change History (4)

@CoenJacobs
7 years ago

Basic implementation of a filter for the arguments

#1 @CoenJacobs
7 years ago

For example: https://github.com/woothemes/woocommerce/issues/1480

In WooCommerce, we would like to filter out the variations post type. These post types have no actual single page, as they are not meant to be shown on the frontend.

#2 @ocean90
7 years ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted

#3 @ocean90
7 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.