Download the PHP package atamj/wp-custom-post without Composer
On this page you can find all versions of the php package atamj/wp-custom-post. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download atamj/wp-custom-post
More information about atamj/wp-custom-post
Files in atamj/wp-custom-post
Download atamj/wp-custom-post
More information about atamj/wp-custom-post
Files in atamj/wp-custom-post
Vendor atamj
Package wp-custom-post
Short Description Class that allows you to create custom posts easily
License MIT
Package wp-custom-post
Short Description Class that allows you to create custom posts easily
License MIT
Please rate this library. Is it a good library?
Informations about the package wp-custom-post
wp-custom-post
Class that allows you to create custom posts easily
Parameters:
/**
* @param string $post_type Post type key. Must not exceed 20 characters and may only contain lowercase alphanumeric characters, dashes, and underscores.
* @param string $menu_name Name of the post type shown in the menu. Usually plural. Default is value of $labels['name']. Also used for $args['label'].
* @param array $supports Core feature(s) the post type supports (['title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', 'custom-fields', 'post-formats']). Default all support. Used for $args['supports'].
* @param array $args (Optional) Array of arguments for registering a post type.Dafault $args = ['has_archive'=>true, 'public'=>true, 'exclude_from_search'=>true, 'rewrite'=>$menu_name]. See https://developer.wordpress.org/reference/functions/register_post_type
*/
Example for all support and best default args:
new CustomPost('test', 'Tests');
Example for custom support and best default args:
new CustomPost('test', 'Tests', ['title', 'editor', 'thumbnail', 'custom-fields'])
Example fo custom support and custom args:
new CustomPost('test', 'Tests', ['title', 'editor', 'thumbnail', 'custom-fields'], ['exclude_from_search'=>false])
All versions of wp-custom-post with dependencies
PHP Build Version
Package Version
No informations.
The package atamj/wp-custom-post contains the following files
Loading the files please wait ....