Documentation

View the installation guide, browse the Knowledge Base, find out about hooks, get support

Available since: 1.0

organizewp_post_type_args_{$post_type}

View Parameters »

OrganizeWP exposes a user interface to customize the majority of Post Type registration parameters. You can use this hook to customize those registration parameters.

Example: To customize the Post Type registration for a Post Type managed by OrganizeWP, add the following to your active theme’s functions.php:

Note: this code snippet has been customized for a Post Type named book. You will need to customize your filter tag to include the Post Type you would like to work with.

<?php
// Customize the registration args for the 'book' post type.
add_filter( 'organizewp_post_type_args_book', function( $args ) {
// $args contains all of the post type registration arguments.
// TODO: modify $args to meet your needs.
return $args;
} );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$args Array

All Post Type registration arguments for the applicable Post Type

Instantly organize your content. No Coding Required!

OrganizeWP will save you money, time, and frustration by allowing you to take back your content. Get organized today!

Get OrganizeWP