How to customize title in WordPress themes using pre_get_document_title

Posted on in Categories Howto, Open Source, Programming last updated December 13, 2017

WordPress version 4.4 and above use a filter called pre_get_document_title() for a customzing title for each page, post, tag, category and more. For example, I can change 404 error title using this filter. One can use the wp_title() which was formerly deprecated in version 4.4 but was returned for compatibility reasons.

Get 2x faster performance & 50% better memory consumption than PHP 5.6 by using PHP 7 on Debian and Ubuntu Linux

Posted on in Categories Link last updated October 28, 2016

So PHP 7 provides 2x faster performance and 50% better memory consumption than PHP version 5.6. How do you install PHP 7 on Ubuntu Linux version 14.04 LTS server? How do I install PHP 7 with PHP-FPM in along with Nginx web server or Lighttpd or Apache 2 server? How can I install PHP 7 on Debian 8.x or 7.x server? See

  1. How to install PHP 7 on Debian Linux 8.6/7.x [jessie/wheezy]
  2. How to install PHP 7 on Ubuntu Linux 14.04 LTS