Skip to content

rask/wp-palvelu-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP-palvelu.fi

WP-palvelu Must-use Plugin

Enhances WordPress with WP-palvelu.fi specific features and integrations.

Installation

In order to use this with composer you need to add this mu-plugin:

https://github.com/roots/bedrock/blob/master/web/app/mu-plugins/bedrock-autoloader.php

This is because WordPress won't use mu-plugins from their own folders.

Then add this to your composer:

{
  "require": {
    "seravo/wp-palvelu-plugin": "*"
  },
  "extra": {
    "installer-paths": {
      "htdocs/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"]
    }
  }
}

Features

  • Shows notifications from WP-Palvelu

  • Returns 401 (unauthorized) http status code after failed login.

  • Hides Update nagging since that is handled by WP-Palvelu

  • Uses nocache headers if the site is in development mode

  • Adds Purge Cache -button in adminbar

  • Make urls in content relative for easier migration, but turn relative urls into absolute urls when using feeds (rss,atom...)

  • Allows login to wp-admin with secure ssl client certificate. This helps admins and clients which have multiple sites in WP-Palvelu.

Changelog

1.3

  • Added translations
  • Added Purge Cache -button to adminbar
  • Use headers which disallow browser cache when the site is in development
  • Fixes relative urls problems with Feeds (RSS,Atom...)

1.2

  • Revamped the structure to allow developers to disable any functionality in the plugin using filters
  • Added relative urls module

About

Enhances WordPress with WP-Palvelu.fi specific features and integrations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.0%
  • JavaScript 2.0%