Changing Post Type Retrieval Arguments

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 see get_post_types for the full set of arguments.

Last updated