laipower/wp-content/upgrade-temp-backup/plugins/activitypub/integration/class-jetpack.php

22 lines
476 B
PHP
Raw Normal View History

2024-07-19 19:46:16 +00:00
<?php
namespace Activitypub\Integration;
class Jetpack {
public static function init() {
\add_filter( 'jetpack_sync_post_meta_whitelist', [ __CLASS__, 'add_sync_meta' ] );
}
public static function add_sync_meta( $whitelist ) {
if ( ! is_array( $whitelist ) ) {
return $whitelist;
}
$activitypub_meta_keys = [
'activitypub_user_id',
'activitypub_inbox',
'activitypub_actor_json',
];
return \array_merge( $whitelist, $activitypub_meta_keys );
}
}