- webhint is a customizable linting tool that helps you improve your site's accessibility, speed, cross-browser compatibility, and more
- https://webhint.io/scanner/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Mime Types | |
* Description: Allow other mime types on upload | |
* Plugin URI: | |
* Version: 1.0.0 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de | |
* License: GPLv2 | |
* License URI: ./assets/license.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: https Fix for enqueue scripts/styles | |
*/ | |
// Fix some badly enqueued scripts with no sense of HTTPS for the back end only. | |
// Kudos to http://snippets.webaware.com.au/snippets/cleaning-up-wordpress-plugin-script-and-stylesheet-loads-over-ssl/ | |
add_action( 'wp_print_scripts', 'fb_enqueueScriptsFix', 100 ); | |
add_action( 'wp_print_styles', 'fb_enqueueStylesFix', 100 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Control plugin update. | |
* Description: xyz | |
* Plugin URI: https://wpbuch.com/listing-13-1 | |
* Version: 1.0.0 | |
* Author: | |
* Author URI: | |
* Licence: GPLv2+ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Attachment Taxonomies | |
* Plugin URI: attachment_taxonomies | |
* Text Domain: addquicktag | |
* Domain Path: /languages | |
* Description: | |
* Version: 1.0.0 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php # -*- coding: utf-8 -*- | |
declare(strict_types=1); | |
/** | |
* Plugin Name: Disable REST API | |
*/ | |
// Completely disable wp-json access. | |
add_filter( | |
'rest_authentication_errors', | |
function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Remove Gravatar on Admin Bar | |
* Plugin URI: http://talkpress.de/artikel/wordpress-admin-bar-datenkrake-missbrauch | |
* Description: Remove Gravatar on Admin Bar | |
* Version: 1.0.0 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de | |
* License: GPLv3 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Control Gutenberg blocks. | |
* Description: | |
* Plugin URI: https://bueltge.de | |
* Version: 1.0.0 | |
* Author: | |
* Author URI: | |
* Licence: GPLv2+ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Default table styles for this demo */ | |
table { | |
border-collapse: collapse; | |
text-align: left; | |
width: 100%; | |
} | |
table tr { | |
background: white; | |
border-bottom: 1px solid | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function count_page_hits() { | |
if ( is_single() ) { | |
global $post; | |
$count = get_post_meta( $post -> ID, 'count_page_hits', true ); | |
$newcount = $count + 1; | |
update_post_meta( $post -> ID, 'count_page_hits', $newcount ); | |
} | |
} | |
add_action( 'wp_head', 'count_page_hits' ); |