Timeless Component Builder

This plugin will help developer to build component in minimum amount of time.

Author:coder618 (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:5.3.8
Plugin version:1.1.0
Added to WordPress repository:04-01-2020
Last updated:17-01-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:274
Active installs:10+
plugin download
Click to start download

This plugin will help developer to build component in minimum amount of time.
This plugin based on some wordpress core function like : add_filter , meta box , Custom post type.
thats why you can consider this plugin is a timeless plugin, because i dont think WordPress going to replace
this function in the feature release.

How to use

How to Create Component:

There are Only 2 step you have to follow to create a component, which is
1. Create Component by registering Component Fields.
2. Create Component Rendering Template (a .php file, you can use HTML markup there too)

Detail:
Step 1:
To Create a component Field first you have to define a function with any name you want.
Then you need to add those function in a filter hook, name —- tcb__fileds —–

example:
function banner_fields($arr){
$arr[‘banner’] = [
[
‘type’ => ‘text’,
‘field’ => ‘title’,
‘label’ => __(‘Banner Title’, ‘tcb’),
‘columns’ => ’12’,
],
[
‘type’ => ‘textarea’,
‘field’ => ‘detail’,
‘label’ => __(‘Banner detail’, ‘tcb’),
‘columns’ => ’12’,
],
];
return $arr;
}
add_filter( ‘tcb__fields’, ‘banner_fields’ );

Step 2:
Create a template file (.php) at the location ” activated-theme/tcb/component-{$component-category}.php”
In the template file you just have to call a function to receive the user input data.
eg: $component_data = tcb_data();
After that all the user provided data will store in the $component_data variable as array.

Now you can use the data as per your template need.

Isn’t that simple ?

For Example full Documentation :
Please Visit: Plugin Landing Page

How to use a component

  1. From Dashboard, go to Component->Add New
  2. Give a name and Select the Component Type/Category and publish/update the component post.
  3. You will find Component Related field with the component will be available below the title, user can provide the necessary data in the field and update the component post.
  4. Copy the shortcode and use it where you want to render/view the component.