mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2026-02-05 22:55:14 +01:00
Initiale Version
This commit is contained in:
25
Kapitel_7/Lektion_5/video_training.php
Normal file
25
Kapitel_7/Lektion_5/video_training.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: Video-Training
|
||||
Description: ...
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
|
||||
function vt_filter($content)
|
||||
{
|
||||
return str_replace('Video-Training', '<b>Video-Training</b>', $content);
|
||||
}
|
||||
add_filter('the_content', 'vt_filter');
|
||||
|
||||
|
||||
function vt_email_an_freunde()
|
||||
{
|
||||
wp_mail(
|
||||
'service@rheinwerk-verlag.de',
|
||||
'Neuer Blog Post',
|
||||
'Ich habe einen neuen Artikel auf meinem Blog veröffentlicht.'
|
||||
);
|
||||
}
|
||||
add_action('publish_post', 'vt_email_an_freunde');
|
||||
Reference in New Issue
Block a user