Skip to content

[Challenge 2] Custom Schema Plugin - Andres Guevara - #34

Open
AndresGuevara27 wants to merge 5 commits into
masterfrom
feature/andres-guevara-challenge-2
Open

[Challenge 2] Custom Schema Plugin - Andres Guevara#34
AndresGuevara27 wants to merge 5 commits into
masterfrom
feature/andres-guevara-challenge-2

Conversation

@AndresGuevara27

Copy link
Copy Markdown

Summary

Implements the backend schema for the Law Firm of Pug and Puggle, ESQ.

Custom Post Types

  • attorney — Firm members with credentials and contact info
  • practice_area — Legal service areas offered by the firm
  • case_result — Won cases with verdict amounts and details

Custom Taxonomies

  • practice_area_type — Hierarchical. Connects to attorney, practice_area, and case_result
  • state_bar — Non-hierarchical. Licensed states per attorney

Additional Features

  • Meta boxes for all post types with proper sanitization and nonce verification
  • Custom DB table wp_case_inquiries for potential client contact submissions
  • REST API endpoints: /attorneys, /practice-areas, /case-results

Plugin Structure

  • PHP 8.0+ with namespaces and autoloader
  • Follows WordPress Coding Standards
  • Proper escaping, sanitization, and capability checks throughout

- Replace logo SVG with Wikimedia Commons Airbnb logo image
- Update CSS for .airbnb-header__logo-svg with fixed dimensions (36px height)
- Maintain responsive design with auto width
- Improve logo display consistency in header
…ug and Puggle with CPTs, taxonomies, meta boxes, custom DB table, and REST API endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant