Custom Types GitLab
A WordPress plugin that helps facilitate the creation of custom types
by Grofftech · gitlab.com/grofftech/wordpress/custom-types · website
★ 0stars
67composer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitLab:
wp plugin install https://gitlab.com/api/v4/projects/55303098/packages/generic/custom-types/1.0.6/custom-types.zipAlso on Packagist as grofftech/custom-types:
composer require grofftech/custom-typesFrom the readme
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
Read the full README on GitLab →
Releases
| Tag | Published | Asset |
|---|---|---|
| 1.0.6 | Nov 8, 2025 | custom-types.zip |
| 1.0.5 | Sep 23, 2025 | custom-types.zip |
| 1.0.4 | Sep 17, 2025 | custom-types.zip |
| 1.0.3 | Sep 17, 2025 | custom-types.zip |
| 1.0.2 | Sep 8, 2025 | custom-types.zip |
| 1.0.1 | Sep 7, 2025 | custom-types.zip |
| 1.0.0 | Jul 27, 2025 | custom-types.zip |
GitLab does not publish per-asset download counts, so this plugin ranks on stars and activity only.