We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05176c commit b956f5bCopy full SHA for b956f5b
includes/transformer/class-post.php
@@ -452,6 +452,15 @@ protected function get_tags() {
452
protected function get_content() {
453
global $post;
454
455
+ /**
456
+ * Provides an action hook so plugins can add their own hooks/filters before AP content is generated.
457
+ *
458
+ * Example: if a plugin adds a filter to `the_content` to add a button to the end of posts, it can also remove that filter here.
459
460
+ * @param WP_Post $post The post object.
461
+ */
462
+ do_action( 'activitypub_before_get_content', $post );
463
+
464
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
465
$post = $this->wp_post;
466
$content = $this->get_post_content_template();
0 commit comments