add_post_type_support when updating activitypub_support_post_types
Some checks failed
Some checks failed
This commit is contained in:
parent
3f7f996e10
commit
724a884738
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ class Setup {
|
|||
foreach ( $this->active_event_plugins as $event_plugin ) {
|
||||
if ( ! in_array( $event_plugin->get_post_type(), $activitypub_supported_post_types, true ) ) {
|
||||
$activitypub_supported_post_types[] = $event_plugin->get_post_type();
|
||||
add_post_type_support( $event_plugin->get_post_type(), 'activitypub' );
|
||||
}
|
||||
}
|
||||
update_option( 'activitypub_support_post_types', $activitypub_supported_post_types );
|
||||
|
|
Loading…
Reference in a new issue