Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.5 KB

actions.md

File metadata and controls

69 lines (46 loc) · 1.5 KB

Action Hooks

Table of Contents

Activation / Deactivation

graphql_seo_activate

Runs when the plugin is activated.

do_action( 'graphql_seo_activate' );

graphql_seo_deactivate

Runs when the plugin is deactivated.

do_action( 'graphql_seo_deactivate' );

graphql_seo_delete_data

Runs after the plugin deletes its data on deactivate.

do_action( 'graphql_seo_delete_data' );


## Lifecycle
### `graphql_seo_init`

Runs when the plugin is initialized.

```php
do_action( 'graphql_seo_init', $instance );

Parameters

  • $instance (WPGraphQL\Seo\Main) : The instance of the plugin.

graphql_seo_before_register_types

Runs before the plugin registers any GraphQL types to the schema.

do_action( 'graphql_seo_before_register_types' );

graphql_seo_after_register_types

Runs after the plugin finishes registering all GraphQL types to the schema.

do_action( 'graphql_seo_after_register_types' );

Reference