WP Manifestindependent plugin directory
manifest / updates / wp-cpt-import

WP CPT Import

WordPress Custom Post Types Import and Export Plugin

by msibtain · github.com/msibtain/wp-cpt-import · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/msibtain/wp-cpt-import/archive/refs/heads/main.zip

WordPress Custom Post Types Import and Export Plugin

This plugin creates the API endpoint to generate the JSON for the website that needs export. For example data needs to be exported from website http://abc.com

Once this plugin is intalled, it will create a following api endpoint.

http://abc.com/wp-json/v1/cptexport

Above api endpoint receives the following parameters.

ppp = Posts Per Page cpt = Custom Post Type pn = Page Number

On the second website, where data needs to be imported, change the URL of the second website in wp-cpt-import.php and then run the following URL.

http://xyz.com/?action=ilab_import&cpt=YOUR_CUSTOM_POST_TYPE&ppp=10&pn=0