WP Manifestindependent plugin directory
manifest / content / sundew-sollution-machine-test

Faculty Importer

WordPress Assignment

by Sayan Pal · github.com/sayan2407/sundew-sollution-machine-test

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/sayan2407/sundew-sollution-machine-test/archive/refs/heads/master.zip

Readme

Faculty Importer is plugin that create a custom post type Faculty which is display on the WordPress Admin Menu.

This custom post have 4 meta keys

  1. Name
  2. Department
  3. Qualification
  4. Email

we can update or modify this post type as manually also.

To test that plugin you have to create an page (I have written the logic as page wise.) page url should be "import-data"

Once you hit the page URL. for example: http://localhost:10084/import-data/

script will read faculty.csv data and import or update it to custom post type.

Also, It'll display a summery. Like below: Import Completed

Rows Read: 11

Imported: 0

Updated: 9

Skipped: 2

Reasons for Skipped Entries: Invalid email format for faculty member: Array ( [Name] => Alice Brown [Department] => Maths [Qualification] => M.SC [Email] => alice [Photo] => alice.jpg )

Missing required fields for faculty member: Array ( [Name] => [Department] => Physics [Qualification] => PhD [Email] => prof.physics@university.edu [Photo] => photo.jpg )

Maintained Nonce, Normalization, validation all security scope.

Read the full README on GitHub →