LibWp
Provide some simple functionality to register some hooks that could not register inside the WordPress themes
The facts
- Rating
- 4★ from 1
- Active installs
- 300+
- Price
- Free
- Last updated
- 4 Apr 2021
- Added
- Jul 2012
- Requires WP
- 3.0
- Tested up to
- WP 5.6.19
- Requires PHP
- 7.1
- Downloads
- 7,989
Our analysis
AI-assistedLibWp is a WordPress plugin designed to register custom post types and taxonomies. It provides functionality to create and manage a 'book' post type and a 'types' taxonomy, which can be useful for sites focused on book collections or libraries.
The plugin allows you to set various parameters and labels for the post type and taxonomy, making it easier to integrate with the WordPress environment. It is suitable for developers looking to extend their WordPress site's capabilities without needing to write extensive code.
Best for: Developers creating sites that require custom post types and taxonomies, particularly for books.
What it does well
- ✓Free to use from the WordPress.org directory
- ✓Allows registration of custom post types and taxonomies
- ✓Provides a straightforward API for developers
Where it falls short
- •Limited information on features and capabilities
- •Directory score indicates potential issues or limitations
Verdict
LibWp offers basic functionality for registering post types and taxonomies, but its limited documentation may require further exploration for effective use.
From the developer
Mostafa Soufi's own description of LibWp, lightly tidied.
Provide some simple functionality to register some hooks that could not register inside the WordPress themes
Quick Start
Get instance of main class.
LibWp();
Post type
LibWp()->postType();
Taxonomy
LibWp()->taxonomy();
Register a new taxonomy
LibWp()->postType()
->setName('book')
->setLabels([
'name' => _x('Books', 'Post type general name', 'textdomain'),
'singular_name' => _x('Book', 'Post type singular name', 'textdomain'),
'menu_name' => _x('Books', 'Admin Menu text', 'textdomain'),
'add_new' => __('Add New', 'textdomain'),
'edit_item' => __('Edit Book', 'textdomain'),
'view_item' => __('View Book', 'textdomain'),
'all_items' => __('All Books', 'textdomain'),
])
->setFeatures([
'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments'
])
->setArgument('show_ui', true)
->register();
Register a new taxonomy belongs to previous post type
LibWp()->taxonomy()
->setName('types')
->setPostTypes('book')
->setArgument('show_in_rest', true)
->setLabels([
'name' => _x('Types', 'taxonomy general name', 'textdomain'),
'singular_name' => _x('Type', 'taxonomy singular name', 'textdomain'),
'search_items' => __('Search Types', 'textdomain'),
'all_items' => __('All Types', 'textdomain'),
'edit_item' => __('Edit Type', 'textdomain'),
'add_new_item' => __('Add New Type', 'textdomain'),
'new_item_name' => __('New Type Name', 'textdomain'),
'menu_name' => __('Types', 'textdomain'),
])
->register();