# Actions

***

### License Actions

#### `sce_core_license_{$action}`

Fires when a license action is performed. This is a dynamic action where `{$action}` can be: `check_license`, `activate_license`, or `deactivate_license`.

**Parameters:**

* `array $response` - Response of the license action.

**Since:** 1.0.0

**Example:**

```php
// For check_license action
add_action( 'sce_core_license_check_license', function( $response ) {
    // Log the license check response
    error_log( 'License check: ' . print_r( $response, true ) );
} );

// For activate_license action
add_action( 'sce_core_license_activate_license', function( $response ) {
    // Perform custom action when license is activated
    if ( isset( $response['success'] ) && $response['success'] ) {
        // License activated successfully
    }
} );
```

***

### Mentions Subscribe Actions

#### `sce_mentions_subscribe_after_scripts`

Fires after scripts are printed in the header on the subscribe page.

**Parameters:**

* `string $sce_mentions_theme_name` - The theme name.

**Since:** 1.0.0

**Example:**

```php
add_action( 'sce_mentions_subscribe_after_scripts', function( $theme_name ) {
    // Add custom inline script after header scripts
    echo '<script>console.log("Subscribe page loaded");</script>';
} );
```

#### `sce_mentions_subscribe_after_styles`

Fires after styles are printed in the header on the subscribe page.

**Parameters:**

* `string $sce_mentions_theme_name` - The theme name.

**Since:** 1.0.0

**Example:**

```php
add_action( 'sce_mentions_subscribe_after_styles', function( $theme_name ) {
    // Add custom inline styles after header styles
    echo '<style>.custom-class { color: red; }</style>';
} );
```

#### `sce_mentions_subscribe_body_open`

Fires when the body tag opens on the subscribe page.

**Example:**

```php
add_action( 'sce_mentions_subscribe_body_open', function() {
    // Add custom content at the start of the body
    echo '<div class="custom-wrapper">';
} );
```

#### `sce_mentions_subscribe_body`

Fires inside the main content area of the subscribe page.

**Example:**

```php
add_action( 'sce_mentions_subscribe_body', function() {
    // Add custom content to the subscribe page body
    echo '<p>Thank you for subscribing!</p>';
} );
```

***

### Mentions Unsubscribe Actions

#### `sce_mentions_unsubscribe_after_scripts`

Fires after scripts are printed in the header on the unsubscribe page.

**Parameters:**

* `string $sce_mentions_theme_name` - The theme name.

**Since:** 1.0.0

**Example:**

```php
add_action( 'sce_mentions_unsubscribe_after_scripts', function( $theme_name ) {
    // Add custom inline script after header scripts
    echo '<script>console.log("Unsubscribe page loaded");</script>';
} );
```

#### `sce_mentions_unsubscribe_after_styles`

Fires after styles are printed in the header on the unsubscribe page.

**Parameters:**

* `string $sce_mentions_theme_name` - The theme name.

**Since:** 1.0.0

**Example:**

```php
add_action( 'sce_mentions_unsubscribe_after_styles', function( $theme_name ) {
    // Add custom inline styles after header styles
    echo '<style>.custom-class { color: blue; }</style>';
} );
```

#### `sce_mentions_unsubscribe_body_open`

Fires when the body tag opens on the unsubscribe page.

**Example:**

```php
add_action( 'sce_mentions_unsubscribe_body_open', function() {
    // Add custom content at the start of the body
    echo '<div class="custom-wrapper">';
} );
```

#### `sce_mentions_unsubscribe_body`

Fires inside the main content area of the unsubscribe page.

**Example:**

```php
add_action( 'sce_mentions_unsubscribe_body', function() {
    // Add custom content to the unsubscribe page body
    echo '<p>You have been unsubscribed successfully.</p>';
} );
```
