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
{"sig":"b4ee7efdf18f40157f2e189d04ad4f1d895633e4b9036d7bb276a69c6cc20cabc33ce4999e4116d9ec4308c0063393bcc6afdf62d917f010f7ebfd2b0d8d76551","msghash":"5bc5382e956142a65949eed71f806d1d0fad1167d3f68e4cdf2d0aa1a8af19cb"} |
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: Disable Full Size Image | |
Description: This plugin removes the "Original Size" option in the drop down when inserting an image into a post | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.de | |
*/ | |
function disable_full_size_image( $image_size_names ) { |
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: M11 Theme Features | |
Plugin URI: https://speedword.press | |
Description: Das Plugin muss sich im Ordner wp-content/mu-plugins/ befinden. Ebenfalls muss in der wp-config autoupdaten aktiviert sein. | |
Author: Daniel Bieli | |
Author URI: https://speedword.press | |
License: GPL2 | |
*/ |
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
######################################################################################## | |
# bewho's robots.txt file for RadarTek websites | |
######################################################################################## | |
User-agent: * | |
Allow: / | |
Allow: /robots.txt | |
Allow: /*.png* | |
Allow: /*.jpg* | |
Allow: /*.jpeg* |
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 | |
// add theme support for | |
add_theme_support('html5'); | |
add_theme_support('menus'); | |
add_theme_support('post-formats', array( | |
'aside', | |
'image', | |
'link', | |
'status' | |
)); |
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 | |
if( | |
strpos( $_SERVER['HTTP_REFERER'], 'wp-admin' ) === false && | |
strpos( $_SERVER['REQUEST_URI'], 'admin-ajax.php' ) !== false | |
) { | |
header( 'Cache-Control: max-age=30000, must-revalidate' ); | |
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', strtotime( '+5000 minutes' ) ) . ' GMT' ); | |
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', strtotime( '-5000 minutes' ) ) . ' GMT' ); | |
header( $_SERVER["SERVER_PROTOCOL"]." 404 Not Found" ); | |
die; |
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 | |
/** | |
* Force cache headers on 404 pages and prevent WordPress from handling 404s. | |
* | |
* @param bool $preempt determines who handles 404s. | |
* @param obj $wp_query global query object. | |
*/ | |
function change_404_headers( $preempt, $wp_query ) { | |
if ( ! is_admin() && ! is_robots() && count( $wp_query->posts ) < 1 ) { | |
header( 'Cache-Control: max-age=30000, must-revalidate' ); |
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 | |
// always paste as plain text | |
foreach ( array( 'tiny_mce_before_init', 'teeny_mce_before_init') as $filter ) { | |
add_filter( $filter, function( $mceInit ) { | |
$mceInit[ 'paste_text_sticky' ] = true; | |
$mceInit[ 'paste_text_sticky_default' ] = true; | |
return $mceInit; | |
}); | |
} |
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
<ul class="collapse_list"> | |
<li><a href="#" data-toggle="collapse" data-target="#one">One</a></li> | |
<li><a href="#" data-toggle="collapse" data-target="#two">Two</a></li> | |
</ul> | |
<div class="collapse_content"> | |
<div id="one"> | |
<p>Content for div one</p> | |
</div> |