From f2f208feb8e9add960c279010d258ec3ecde1933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 22 Nov 2023 21:57:19 +0100 Subject: [PATCH] fix links --- Transformers/add-transformer.md | 2 +- Transformers/transformer-structure.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Transformers/add-transformer.md b/Transformers/add-transformer.md index 7922690..9d3cdce 100644 --- a/Transformers/add-transformer.md +++ b/Transformers/add-transformer.md @@ -23,4 +23,4 @@ function register_new_transformers( $transformers_manager ) { add_action( 'activivitypub_transformer_register', 'register_new_transformers' ); ``` -The transformer manager registers new transformers by accepting transformer instances. For more information about the transformer class, read about the [transformer class structure](./transformer-structure/). +The transformer manager registers new transformers by accepting transformer instances. For more information about the transformer class, read about the [transformer class structure](./transformer-structure.md/). diff --git a/Transformers/transformer-structure.md b/Transformers/transformer-structure.md index 0e33aad..60c5f5e 100644 --- a/Transformers/transformer-structure.md +++ b/Transformers/transformer-structure.md @@ -1,10 +1,10 @@ -# Widget Structure +# Transformer Structure To create a custom ActivityPub Transformer start by creating a class that extends the `\Activitypub\Transformer\Base` class and fill in all the required methods. Each transformer needs to have a few basic settings — a unique name that will identify the transformer, a label that will be used as the title when being displayed in the settings section, and a list of supported post types that the transformer can use as an input. -## Widget Class +## Transformer Class First, we need to create a class that extends the `\Activitypub\Transformer\Base` class: