Created
December 14, 2018 13:23
-
-
Save WordPress-Handbuch/27b5ca963ce73f2ab274cebe8ffaf7db to your computer and use it in GitHub Desktop.
WordPress 5 Plugin: WH_Hello_World
This file contains hidden or 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 | |
/** | |
* @package WH_Hello_World | |
* @version 1.0.0 | |
*/ | |
/* | |
Plugin Name: WH Hello World | |
Plugin URI: https://wordpress-handbuch.com | |
Description: Testausgabe in Front- und Backend | |
Author: Richard Eisenmenger | |
Version: 1.0.0 | |
Author URI: https://richard-eisenmenger.com | |
*/ | |
function hello_world() { | |
echo "<script>alert('Hallo Welt!');</script>\n"; | |
} | |
add_action( 'admin_head', 'hello_world' ); | |
add_action( 'wp_head', 'hello_world' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ich bin begeistet