wpsl_post_type_args

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File
  6. Related

Description

This filter allows you to modify the arguments that are used to register the wpsl_stores post type.

Parameters

$args - (array) The default post type arguments.

Usage

This example enables the post type archives:

If you’re using WP 5.x and like to disable the Gutenberg editor, then you can do this by adding the code below to the functions.php inside your active theme folder.

If you enable the post type archives, you will need to resave the permalinks. You can do this by going to Settings > Permalinks and click “Save Changes”.

Changelog

Since 2.0

Source File

This filter is located in /inc/class-post-types.php.