Your browser is outdated and some Useme features may not work correctly. Update your browser.

PHP . Create a simple WordPress plugin that will add a class to the front-end after the appropriate select.

Employer
Mariusz Pyś
Mariusz Pyś
Description

Hi,

I am creating a website for a developer with apartment floor plans.

I need you to create a plugin for me that will have a list/table on the admin side with select:

Apartment 1 - o free o reserved o occupied

Apartment 2 - o free o reserved o occupied

Apartment 3- o free o reserved o occupied

Apartment 4 - o free o reserved o occupied

And so we have 41 apartments.

example for apartment 1. Depending on what will be selected is for the special HTML attribute [data-shape-title="apartment-1"].

the plugin is to add a class: ".free", or ".reserved", or ".occupied">.

And so for each apartment. The purpose of this is simply to change the background color using the loaded class.

The hook for the frontend is the attribute: [data-shape-title="apartment-1"] where number, is the apartment number.

It would be nice if on the admin side it looked like the picture in the order:

Published
on 2023-02-21
File description 1
Fajnie gdyby po stronie admin'a wyglądało to jak na zdjęciu w zleceniu

Offers sent (11)

Budget
Negotiable
Copyright
-
Expires in
30 days