An open API service indexing awesome lists of open source software.

https://github.com/herm71/casaluna-core-functionality


https://github.com/herm71/casaluna-core-functionality

wordpress wordpress-plugin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# Casa Luna Core Functionality Plugin

![GitHub Release](https://img.shields.io/github/v/release/Herm71/casaluna-core-functionality?logo=github) ![GitHub issues](https://img.shields.io/github/issues/Herm71/casaluna-core-functionality?logo=github) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Herm71/casaluna-core-functionality/release.yml?logo=github)

This the core functionality [WordPress](https://wordpress.org) plugin for the [**Casa Luna**](https://casalunayelapa.com) 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.

## Features

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 [prevent `xml-rpc` attacks](https://pantheon.io/docs/wordpress-best-practices#avoid-xml-rpc-attacks), per best practices

* `gtm.php` -- Google Tag Manager

* `security-headers` -- Security headers and Content Security Policy

## Dependencies

This theme was built using [@wordpress/scripts](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/) and includes additional linting and formatting `dev` dependencies.

## Requirements

* Node/npm
* Composer

## Installation

* Clone repo
* `cd` into newly cloned repo directory
* in terminal run `npm i && composer install`

## Developer

[@Herm71](https://github.com/Herm71)