fix links
This commit is contained in:
parent
15fbd789e5
commit
f2f208feb8
2 changed files with 3 additions and 3 deletions
|
@ -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/).
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue