Ceci est une ancienne révision du document !
Table des matières
Wordpress
Documentation
Pour les développeurs
-
- Wordpress hooks
- liste des hooks sur Codex WP
- Ajax
- Form
- Settings
- wp_dropdown_categories: HTML dropdown list of categories (options: show_option_none, hierarchical, …)
Frameworks
- Sage The best WordPress starter theme with a modern front-end development workflow.
Frameworks
http://wordpress.org/extend/plugins/options-framework/ - The Options Framework Plugin makes it easy to include an options panel in any WordPress theme. It was built so developers can concentrate on making the actual theme rather than spending time creating an options panel from scratch.
Pods Framework - Pods is a framework for WordPress that allows you to create, extend, manage, and deploy customized content types and fields.
NHP-Theme-Options-Framework - Simple, easy to use, very extendable Options framework for WP themes.
Redux-Framework a fork of NHP-Theme-Options-Framework.
Sécuriser Wordpress
Wordfence
Two-factor (2FA)
Two-factor plugin: 2FA with TOTP or Email
Admin Url
Changer l'url pour se connecter et de l'admin
-
- a light plugin that lets you easily and safely change wp-login.php. It doesn’t literally rename or change files in core, nor does it add rewrite rules. It simply intercepts page requests and works on any WordPress website. The wp-admin directory and wp-login.php page become inaccessible, so you should bookmark or remember the url. Deactivating this plugin brings your site back exactly to the state it was before.
Tricks & Tips
Flash message & co
Côté back
- Afficher des notices (error or success) après une redirection: Displaying Errors from the save_post Hook in WordPress
Côté front
Q & A
- http://themecheck.info Vérifier la qualité des thèmes.
Nginx configuration
Pour faire tourner Wordpress avec Nginx:
Cache
Wordpress gère nativement un cache (WordPress object cache) pour toutes ses données (transients, options, meta, posts, users …)
Avec APCu
- WordPress APCu Object Cache Backend by Scott Cariss (l3rady) (a fork from Mark Jaquith's APC Object Cache Backend)
- Ne pas oublier de définir une clé unique pour le site quand mutualisation de php avec
define('WP_APCU_KEY_SALT','<unique key>');
- Un outil de visualisation de l'état d'APCu est fourni dans sa distribution, que l'on peut retrouver ici krakjoe/apcu ; prendre le fichier apc.php dans la release correspondante à celle installée
Avec Memcached
- WordPress + Memcached One of the most bizarre critiques of WordPress that I often hear is “it doesn’t come with caching” – which makes no sense because Cache is one of the best features of WordPress out of the box
Autre trucs:
- NGinx plugins: https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/ (en bas de page)
Varnish
WordPress with Varnish
- Implementing WordPress with Varnish (Varnish documentation)
- Varnish HTTP Purge purge sends a PURGE request to the URL of a page or post every time it it modified.
- WPBase Cache was developed to optimize the WordPress deployment on varnish + nginx + php-fpm + php-apc server stack using three type of caches full page cache, db cache and opcode cache.
Update files without FTP
In wp-config.php
:
define('FS_METHOD','direct');
Load WordPress Posts With AJAX
- Article & Plugin by Michael Martin: Load Next WordPress Posts With AJAX
- Article by Emanuele Feronato: Loading WordPress posts with Ajax and jQuery, using the standard Kubrick theme without any plugin installed.
Maintenir un plugin sur Github ou GitLab
Bug avec MySql et Inner Join
Qlqs plugins
- Developpement
- query-monitor https://wordpress.org/plugins/query-monitor/
-
- Représentation et gestion du temps
- WPIT Gantt qui utilise Gantti
- WP SIMILE Timeline qui utilise SIMILE Timeline
- Carto
- Gestion d'accès (droits et autres rôles)
WP App Studio's plugins (free & not free).
Qlqs thèmes
- Qlqs thèmes sur artefacts.coop
Zerif-lite
- Search results for Zerif on docs.themeisle.com