add_action('wp_footer', function() {
echo 'Hello from the footer!';
});
*/
add_action('comment_post', function() {
$email = get_bloginfo('admin_email');
echo $email;
wp_mail(
$email,
'New Comment Posted',
'A new comment has been left on your blog'
);
})
wordpress plugin action
最新推荐文章于 2024-07-31 11:01:16 发布