This the core functionality WordPress plugin for the Casa Luna website. This theme independent plugin keeps, custom post-types, short-codes, security-headers and other site-based functions out of the theme's code. This ensures that a future theme change does not affect the site's core functionality.
This is plugin provides the following functionality in the following files:
-
general.php
-- for any general functions -
post-types.php
-- registers custom post types (currently not included) -
shortcodes.php
-- for writing custom shortcodes -
disable-xmlrpc.php
-- disables XMLRPC to preventxml-rpc
attacks, per best practices -
gtm.php
-- Google Tag Manager -
security-headers
-- Security headers and Content Security Policy
This theme was built using @wordpress/scripts and includes additional linting and formatting dev
dependencies.
- Node/npm
- Composer
- Clone repo
cd
into newly cloned repo directory- in terminal run
npm i && composer install