Download the PHP package builtnorth/wp-post-types without Composer

On this page you can find all versions of the php package builtnorth/wp-post-types. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-post-types

WordPress Post Type Manager

Composer package for WordPress with a utility class that simplifies the process of creating and managing custom post types with extended functionality. It provides an easy-to-use interface for setting up custom post types, taxonomies, meta fields, and admin columns.

Features

Requirements

Installation

This library is meant to be dropped into a theme or plugin via composer: composer require builtnorth/wp-post-types

Basic Setup

To use PostTypeManager, you need to instantiate the class and call its init() method. The way you do this can vary depending on whether you're using it in a theme or a plugin. It is worth noting that if there is a case where the PostTypeManager finds a config file in a plugin and the theme, the theme will override all settings in the plugins config file.

Theme Usage

When used in a theme, PostTypeManager will automatically look for a post-type.config.json file in your theme directory. Here's how to set it up:

This code should be placed in your theme's functions.php file or a custom plugin file that's loaded by your theme.

Plugin Usage

When using PostTypeManager in a plugin, you'll typically want to specify the path to your configuration file explicitly. Here's how to do that:

This code should be placed in your plugin's main PHP file or in a separate file that's included by your plugin.

Custom Configuration Path

You can specify a custom path for your configuration file, regardless of whether you're using a theme or a plugin:

Using PHP Array Configuration

If you prefer to use a PHP array for configuration instead of a JSON file, you can do so like this:

Best Practices

  1. Always hook into the init action when registering post types and taxonomies.
  2. Use a priority of 0 or a low number to ensure your registrations happen early.
  3. In a plugin, always use an absolute path when specifying the configuration file location.
  4. Consider using a constant for the configuration file path to make it easy to change across your plugin.

By following these initialization methods, you can effectively use PostTypeManager in both theme and plugin contexts, providing flexibility in how and where you manage your custom post type configurations.

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Use of this library is at your own risk. The authors and contributors of this project are not responsible for any damage to your website or any loss of data that may result from the use of this library.

While we strive to keep this library up-to-date and secure, we make no guarantees about its performance, reliability, or suitability for any particular purpose. Users are advised to thoroughly test the library in a safe environment before deploying it to a live site.

By using this library, you acknowledge that you have read this disclaimer and agree to its terms.


All versions of wp-post-types with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package builtnorth/wp-post-types contains the following files

Loading the files please wait ....