'active', 'welcome' => '', 'followers' => '', ) ); ?>

publish_posts capability) gets their own ActivityPub profile.', 'activitypub' ), array( 'code' => array() ) ); ?>

  • [ap_title] -
  • [ap_content] -
  • [ap_excerpt] -
  • [ap_permalink] -
  • [ap_shortlink] - Hum.', 'activitypub' ), 'default' ); ?>
  • [ap_hashtags] -

%s', 'activitypub' ), \esc_html( ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) ), 'default' ); ?>

true ), 'objects' ); ?>
  • name, $support_post_types, true ) ); ?> />

true ), 'objects' ); $transformer_mapping = \get_option( 'activitypub_transformer_mapping', array( 'default' => 'note' ) ); // DUMMY CODE for developing: class Transformer { protected $name; protected $supported_post_types; protected $label; public function __construct(string $name, $label, array $supported_post_types) { $this->name = $name; $this->label = $label; $this->supported_post_types = $supported_post_types; } public function get_name() { return $this->name; } public function get_label() { return $this->label; } public function get_settings_page() { return 'https://event-federation.eu'; } public function get_info_text() { return 'this is some generic info'; } public function supports_post_type($post_type) { return in_array($post_type, $this->supported_post_types); } } $all_public_post_type_names = array_map(function ($object) { return $object->name; }, $all_public_post_types); $transformer1 = new Transformer('default', 'Built-In', $all_public_post_type_names); $transformer2 = new Transformer('tribe', 'The Events Calendar', array('tribe_events')); $transformer3 = new Transformer('generic_event', 'Event', array('tribe_events', 'custom_event')); $transformers = array($transformer1, $transformer2, $transformer3); // END OF DUMMY CODE ?> ' . htmlspecialchars($transformer->get_label()) . ''; } ?> '; echo ''; // Generate radio inputs for each transformer, considering support for the post type foreach ($transformers as $transformer) { $disabled_attribute = $transformer->supports_post_type( $post_type->name ) ? '' : ' disabled'; $is_selected = ( is_array( $transformer_mapping ) && isset( $transformer_mapping[ $post_type->name ] ) && $transformer_mapping[ $post_type->name ] === $transformer->get_name() ) ? ' checked ' : ''; echo ''; } echo ''; } ?>
' . htmlspecialchars($post_type->label) . '

Disallowed Comment Keys" list.', 'activitypub' ), \esc_attr( \admin_url( 'options-discussion.php#disallowed_keys' ) ) ), 'default' ); ?>