fix links

This commit is contained in:
André Menrath 2023-11-22 21:57:19 +01:00
parent 15fbd789e5
commit f2f208feb8
2 changed files with 3 additions and 3 deletions

View file

@ -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/).

View file

@ -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: