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

Faculty Importer

WordPress Assignment

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sayan2407/sundew-sollution-machine-test/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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.