GithubHelp home page GithubHelp logo

stafflink-pty-ltd / stafflink-wp-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tombroucke/otomaties-core

0.0 0.0 0.0 246 KB

Optimize WordPress install

License: MIT License

PHP 100.00%

stafflink-wp-core's Introduction

Otomaties core

Installation

composer require tombroucke/otomaties-core

ACF

  • Hide ACF screen in production & staging environments WP_ENV == 'production' || WP_ENV == 'staging'

Admin

  • Disable comments, remove from admin. To enable comments: add_filter('otomaties_open_comments', '__return_true');

Branding

  • Logo on login screen
  • Logo in toolbar
  • Admin footer

To disable: add_filter('otomaties_whitelabel', '__return_true');

Frontend

  • Disable emojis. To enable: add_filter('otomaties_disable_emojis', '__return_false');
  • Set default image link type to 'file'. To change: add_filter('otomaties_set_default_image_default_link_type', '__return_false');
  • Clean up head section
  • Redirect single search result. To disable: add_filter('otomaties_redirect_single_search_result', '__return_false');
  • Add shortcode for e-mailaddress obfuscation: [email][email protected][email] or [email address="[email protected]"]

Security

Notices for

  • WP_DEBUG or DISALLOW_FILE_EDIT is TRUE
  • debug.log is publicly accesible
  • No security plugin active.

Login screen

  • Add generic error to login screen

SSL

  • Force HTTPS on attachments

General

  • Disable updating of critical options users_can_register & default_role. To disable: add_filter('otomaties_disable_update_critical_options', '__return_false');

Otomaties Connect

  • Otomaties connect can fetch data over the rest API. Secured authentication with a public/private key pair.

Connection

In your .env file or wp-config.php file, add the OTOMATIES_CONNECT_KEY constant from the Otomaties connect portal.

OTOMATIES_CONNECT_KEY='XXXX-XXXX-XXXX-XXXX'
define('OTOMATIES_CONNECT_KEY', 'XXXX-XXXX-XXXX-XXXX');

Revision

  • revision.txt needs to be in web root
  • format: 'YmdHis {{commit hash}}'
  • Show revision in admin footer for administrator role
  • Show revision in console for all environments except production

To disable revisions: add_filter('otomaties_display_revision', '__return_false');

stafflink-wp-core's People

Contributors

tombroucke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.