Custom Types WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA GitLab
A WordPress plugin that helps facilitate the creation of custom types
★ 0stars
75composer installs
1.0.6latest · 11mo ago
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitLab with WP-CLI:
wp plugin install https://gitlab.com/api/v4/projects/55303098/packages/generic/custom-types/1.0.6/custom-types.zipOn Packagist as grofftech/custom-types:
composer require grofftech/custom-typesNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom Types
Helps facilitate code required for custom types in WordPress
WooCommerce
Custom Product
There are actions and filters to hook into that allow for the creation of a custom product in WooCommerce, including adding the type, and creating and saving custom fields
Actions
ctcreateproductclass - Include the class file that extends WCProduct
ctaddproductcustomfields - Add custom fields for the product
ctsaveproductcustomfields - Save data for the product custom fields
ctaddproductcustomfieldsforshipping - Add custom fields to the shipping tab. Saving data for these fields would happen in the ctsaveproductcustomfields action
Filters
ctgetproductclass - Gets the class name from the ctcreateproductclass action. Two filter callback arguments required, $class and $producttype. Hook filters the $class argument.
ctaddproductselection - Adds the product to be able to be selected. One filter callback argument required, $types.
ctupdateproducttabs - Updates the tabs when the product is selected. One filter callback argument required, $tabs
Custom Shipping
Filters
ctaddcustomshippingmethod - Adds a custom shipping method. One filter callback argument required, $methods
Releases
7 releases.
Tag
Published
Assets
GitLab does not publish per-asset download counts, so this plugin ranks on stars and activity only.