LogoLogo
Visit DLXPluginsView All Plugins
Archive Pages Pro
Archive Pages Pro
  • Welcome to Archive Pages Pro
  • Getting Started
    • Installing the Plugin
    • Finding the Plugin's Settings
  • Developers
    • Changing Post Type Retrieval Arguments
    • Excluding Certain Post Types From Mapping
  • Quick Links
    • DLX Plugins Home
    • Archive Pages Pro Home
    • Support
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developers

Changing Post Type Retrieval Arguments

PreviousFinding the Plugin's SettingsNextExcluding Certain Post Types From Mapping

Last updated 8 months ago

Was this helpful?

By default, Archive Pages Pro only lists post types with the public argument set to true and has_archive set to true.

You can change these args using filter: archive_pages_pro_post_type_args

/**
 * Filter the default post type args.
 *
 * @param array $args Default post type args.
 *
 * @since 1.0.0
 */
$args = apply_filters( 'archive_pages_pro_post_type_args', $args );

The $args argument is an array of post type arguments. Please for the full set of arguments.

see get_post_types