Outils pour utilisateurs

Outils du site


informatique:wordpress

Wordpress

Documentation

Frameworks

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

Côté front

Customize Admin

Emoji

Si on ne veut pas des émojis il faut supprimer les actions wordpress associés :

// Stop Loading wp-emoji-release.min.js and CSS file
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );

Q & A

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

  • 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:

Varnish

WordPress with Varnish

Update files without FTP

In wp-config.php :

define('FS_METHOD','direct');

Load WordPress Posts With AJAX

Maintenir un plugin sur Github ou GitLab

Bug avec MySql et Inner Join

Qlqs plugins

Qlqs thèmes

Zerif-lite

informatique/wordpress.txt · Dernière modification: 26/01/2021 10:25 de cyrille