@manuel, since you're working with WordPress, you may want to look at the existing # # plugin: https://wordpress.org/plugins/ostatus-for-wordpress/