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 | |
// Ab hier kopieren | |
// Füge Deinen Code genau zwischen <script> und </script> ein. Er sollte im Anschluss wie folgt aussehen: | |
function google_custom_search_tb( $atts ) { | |
return " | |
<div class=\"searchresultscontainer gcs\"> | |
<h2>Deine Suchergebnisse für: <mark>".htmlentities($_GET['q'])."</mark></h2> | |
<script> | |
(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 | |
// Ab hier kopieren | |
// Ersetzt den WordPress-Feed mit der Feedburner Adresse | |
function drweb_custom_rss_feed( $output, $feed ) { | |
if ( strpos( $output, 'comments' ) ) | |
return $output; | |
/* Link mit deinem persönlichen Feed-Link ersetzen */ | |
return esc_url( 'http://feeds.feedburner.com/drwebmagazin' ); } |
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 | |
// Ab hier kopieren | |
function ah_analytics_code() { | |
?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://techbrain.de/analytics.js','ga'); |
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 echo dirname(__FILE__); ?> | |
<?php | |
$dir = dirname(__FILE__); | |
echo "<p>Full path to this dir: " . $dir . "</p>"; | |
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>"; | |
?> |
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
delete from wp_options where option_name = ‘class_generic_support’; | |
delete from wp_options where option_name = ‘widget_generic_support’; | |
delete from wp_options where option_name = ‘fwp’; | |
delete from wp_options where option_name = ‘wp_check_hash’; | |
delete from wp_options where option_name = ‘ftp_credentials’; | |
delete from wp_options where option_name = ‘rss_7988287cd8f4f531c6b94fbdbc4e1caf’; | |
delete from wp_options where option_name = ‘rss_d77ee8bfba87fa91cd91469a5ba5abea’; | |
delete from wp_options where option_name = ‚rss_552afe0001e673901a9f2caebdd3141d’; |
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
wp-options -> class_generic_support | |
wp-options -> widget_generic_support | |
wp-options -> wp_check_hash | |
wp-options -> rss_7988287cd8f4f531c6b94fbdbc4e1caf | |
wp-options -> rss_d77ee8bfba87fa91cd91469a5ba5abea | |
wp-options -> rss_552afe0001e673901a9f2caebdd3141d |
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
/* Der Standard-Shortcode */ | |
[screen url="https://techbrain.de" alt="Techbrain"] | |
/* Shortcode mit Größenanpassung */ | |
[screen url="https://techbrain.de" alt="Techbrain" w="1000" h="700"] |
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 | |
// Ab hier kopieren | |
/** | |
* Automatische Website Screenshots mit WordPress erstellen | |
* | |
* Nutzung: [screen url="https://techbrain.de" alt="Techbrain"] | |
* Größenanpassung des Screenshots: füge w="Breite" und h="Höhe" hinzu, also w="1000" h="600" | |
*/ | |
function tb_screenshots($atts, $content = NULL) { |
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 | |
/** | |
* WordPress Installer | |
* | |
* @package WordPress | |
* @subpackage Administration | |
*/ | |
// Sanity check. | |
if ( false ) { |
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 | |
/* ============================================================================= | |
1 - Disable all Jetpack CSS | |
============================================================================= */ | |
// First, make sure Jetpack doesn't concatenate all its CSS | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
// Then, remove each CSS file, one at a time |