> For the complete documentation index, see [llms.txt](https://tigriweb.gitbook.io/packaging-fit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tigriweb.gitbook.io/packaging-fit/development/actions.md).

# Actions

### **twpf\_before\_register\_settings**

Triggered before the plugin settings are registered. Use this action to add additional settings or modify existing ones.

```php
add_action( 'twpf_before_register_settings', 'twpf_custom_settings_function' );
function twpf_custom_settings_function() {
    // Add custom settings logic here
}
```

### **tw**p&#x66;**\_after\_register\_settings**

Triggered after the plugin settings are registered. Useful for performing actions after all settings are set up.

```php
add_action( 'twpf_after_register_settings', 'twpf_custom_after_settings_function' );
function twpf_custom_after_settings_function() {
    // Perform actions after settings are registered
}
```

### **tw**p&#x66;**\_before\_package\_data**

Triggered before the package data is output. Use this action to modify or add data to the package configuration.

```php
add_action( 'twpf_before_package_data', 'twpf_custom_before_package_data_function' );
function twpf_custom_before_package_data_function() {
    // Modify package data before output
}
```

### **tw**p&#x66;**\_after\_package\_data**

Triggered after the package data is output. Use this action to add additional HTML or scripts related to package data.

```php
add_action( 'twpf_after_package_data', 'twpf_custom_after_package_data_function' );
function twpf_custom_after_package_data_function() {
    // Add custom HTML or scripts after package data
}
```
