PHP Classes

WordPress SEO less something: Remove comments introduced by Wordpress SEO plugin

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 117 This week: 1All time: 9,545 This week: 34Up
Version License PHP version Categories
wpseols 1.1MIT/X Consortium ...5.0PHP 5, SEO, Blogs
Description 

Author

This class can remove comments introduced by Wordpress SEO plugin.

It register a function to capture the page output.

The class determines if the Yoast Wordpress SEO plugin is installed. If so, it removes all the unnecessary comments that it introduces an returns the filtered page output.

Innovation Award
PHP Programming Innovation award nominee
April 2015
Number 6


Prize: PhpStorm IDE personal permanent license
Some Wordpress plugins alter pages in useful ways but sometimes they add more information than it is necessary.

This package can remove needless HTML introduced in the Wordpress site pages by the Yoast SEO plugin.

Manuel Lemos
Picture of Alessio Felicioni
  Performance   Level  
Name: Alessio Felicioni <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 43
All time rank: 3635143 in Italy Italy
Week rank: 44 Up2 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

Documentation

wordpress-seo-less-something

Turning off some strings from WordPress response code, particularly useful when projects go live

Scenario

Using WordPress with the awesome WordPress SEO plugin by Yoast, you may feel like unpleasant about comments and messages in the header section of HTML page generated for your projects, exposing used plugin family and version. Since they have been designed for debug purposes, it's not needed to have them always on the output.

Requirements

Usage

This is basically a Must Use style plugin, so it will be always active by default.

Just copy wp-content/mu-plugins/wordpress-seo-less-something.php to your WordPress installation.

No panic if there is no wp-content/mu-plugins folder in your setup, just create it before copying the plugin file.

License

See LICENSE


  Files folder image Files (3)  
File Role Description
Files folder imagewp-content (1 directory)
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. License text

  Files folder image Files (3)  /  wp-content  
File Role Description
Files folder imagemu-plugins (1 file)

  Files folder image Files (3)  /  wp-content  /  mu-plugins  
File Role Description
  Plain text file wordpress-seo-less-something.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:117
This week:1
All time:9,545
This week:34Up