Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Krakow thomaskrakow

View GitHub Profile
@thomaskrakow
thomaskrakow / tk-mu-plugins.php
Last active Sep 14, 2022
WordPress Must Use Plugin which activate Contact Form 7 only on contact page.
View tk-mu-plugins.php
<?php
/*
Plugin Name: TK-MU-Plugin
Description:
Author: Thomas Krakow
Version: 1.0
Author URI: https://thomas-krakow.de/it/css-und-javascript-nur-bei-bedarf-auf-wordpress-seiten-einfugen/
*/
$fRequestURI = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );