How ivensarj/wp-code-starter works
WP Code Starter is a WordPress block theme for building sites whose structure and styling live in code while content remains editable in Gutenberg. The main workflow is an editor assembling page layouts from templates and patterns, editing content and visual options, then publishing a rendered site. An optional Projects plugin adds project records, area-based filtering and a gallery. The graph combines sampled PHP relationships with README-documented capabilities; unsampled theme templates and assets are shown at their exact tree paths, without inferred call edges.
Main entry points: wpcs-projects.php Project registration and filtering · functions.php Theme integration · render.php Area filter block · visual-editor.php Visual options
Components 16
Block theme
- Design tokens
themes/wp-code-starter/theme.json - Page templates
themes/wp-code-starter/templates - Header and footer
themes/wp-code-starter/parts - Theme patterns
themes/wp-code-starter/patterns - Shared styles
themes/wp-code-starter/assets/site.css
Gutenberg editing
- Theme integration
themes/wp-code-starter/functions.php - Editor controls
themes/wp-code-starter/assets/editor.js - Visual options
themes/wp-code-starter/inc/visual-editor.php
Projects plugin
- Project registration and filtering
plugins/wpcs-projects/wpcs-projects.php - Project records and areas
plugins/wpcs-projects/wpcs-projects.php - Area filter block
plugins/wpcs-projects/blocks/filters/render.php - Project gallery
plugins/wpcs-projects/patterns/gallery.php
WordPress runtime
- WordPress
- Site content
Other components
- Site editor
- Site visitor
Connections 21
- Site editor → WordPress: edits in
README.md - WordPress → Site content: stores content
README.md - WordPress → Page templates: renders layouts
README.md - WordPress → Header and footer: renders shared parts
README.md - WordPress → Theme patterns: offers patterns
README.md - WordPress → Design tokens: uses design tokens
README.md - WordPress → Shared styles: loads shared styles
- WordPress → Theme integration: loads theme integration
themes/wp-code-starter/functions.php - Theme integration → Visual options: includes
themes/wp-code-starter/functions.php - Theme integration → Editor controls: enqueues
themes/wp-code-starter/functions.php - WordPress → Visual options: filters block rendering
themes/wp-code-starter/inc/visual-editor.php - Site editor → Site content: edits and saves
README.md - Site visitor → WordPress: requests site
README.md - WordPress → Project registration and filtering: loads plugin
plugins/wpcs-projects/wpcs-projects.php - Project registration and filtering → Project records and areas: registers post type
plugins/wpcs-projects/wpcs-projects.php - Project registration and filtering → Area filter block: registers block
plugins/wpcs-projects/wpcs-projects.php - Project registration and filtering → Project gallery: registers pattern
plugins/wpcs-projects/wpcs-projects.php - Site editor → Project records and areas: manages projects
README.md - WordPress → Project gallery: renders gallery
README.md - Area filter block → Project records and areas: reads area terms
plugins/wpcs-projects/blocks/filters/render.php - WordPress → Project records and areas: filters project queries
plugins/wpcs-projects/wpcs-projects.php