mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2024-12-22 12:43:42 +01:00
25 lines
483 B
PHP
25 lines
483 B
PHP
<?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'); |