mit einem Klick
wordpress-plugin-boilerplate
wordpress-plugin-boilerplate enthält 15 gesammelte Skills von code-soup, mit Repository-Berufsabdeckung und Skill-Detailseiten auf SkillsMP.
Skills in diesem Repository
Handle plugin activation, deactivation, and uninstall. Use when setting up database tables, default options, cleanup tasks, or requirement checks.
File naming conventions and namespace-to-directory mapping for PHP files. Use when creating new classes, traits, interfaces, or abstract classes to ensure proper autoloading.
Use Hooker service to register WordPress actions and filters. Use when adding WordPress hooks, filters, or actions in the plugin. Never use add_action or add_filter directly.
Create service providers to register and boot services in the WordPress plugin. Use when adding new features, controllers, or services that need dependency injection and initialization.
Use existing traits and create custom traits for code reuse. Use when sharing common functionality across multiple classes without inheritance.
Modify webpack configuration in src/config/ - add entry points, loaders, plugins, aliases. Use when user needs to customize webpack build, add React/TypeScript, modify Babel, add PostCSS plugins, or change dev server settings.
Create AJAX handlers for WordPress admin and frontend. Use when handling asynchronous requests from JavaScript, form submissions, or dynamic content loading.
Enqueue scripts and styles using the Assets service. Use when adding JavaScript or CSS files to admin or frontend, localizing scripts, or managing asset dependencies.
Use dependency injection container to resolve services and manage dependencies. Use when retrieving services, implementing dependency injection, or managing class instances.
Register custom post types and taxonomies with proper labels, capabilities, and features. Use when creating custom content types like portfolios, testimonials, or products.
Make strings translatable using WordPress i18n functions. Use when displaying any user-facing text to ensure proper internationalization and localization support.
Create REST API endpoints with controllers, routes, permissions, and validation. Use when adding custom REST API endpoints for external integrations or JavaScript applications.
SCSS structure, variables, mixins, font loading, and SVG sprites. Use when styling admin or frontend, adding custom fonts, or using SVG icons.
Security best practices - escape output, sanitize input, verify nonces, check capabilities. Use when handling user input, displaying data, or performing privileged operations.
Understand and use the WordPress Plugin Boilerplate architecture - service providers, dependency injection, Hooker service, file naming conventions, and coding standards. Use when creating new features or understanding plugin structure.