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


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


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


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 instead of /stores/store-name the permalinks look for example like this /blog/stores/store-name, then you can prevent that by using the code below. The ‘blog’ can be a different value on your site, but it will come from the permalink settings screen.

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”.


Since 2.0

Source File

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


The code needs to be placed in the functions.php file inside your active theme folder.