作者のサイトをみていないけど、すでにWordPressのAP対応プラグインは存在するのよねActivityPub – WordPress plugin | WordPress.org https://wordpress.org/plugins/activitypub/