---
title: fluentform/init_custom_stylesheet
description: "## Description This action runs when a custom style is applied to the form. You can also push your own style using this. ```php /* * Source Action */ do_action('fluentform/init_custom_stylesheet', $selectedStyle, $formId); ``` ## Usage ```php add_action('fluentform/init_custom_stylesheet', function ($selectedStyle, $formId)…"
url: "https://fluentforms.com/docs/fluentform_init_custom_stylesheet/"
updated: "2023-07-25"
category: Action Hooks
---

# fluentform/init_custom_stylesheet

## Description

This action runs when a custom style is applied to the form. You can also push your own style using this.

```php
/*
* Source Action
*/
do_action('fluentform/init_custom_stylesheet', $selectedStyle, $formId);
```

## Usage

```php
add_action('fluentform/init_custom_stylesheet', function ($selectedStyle, $formId)
{
   // Do your stuffs here
   // enque style
}, 10, 0);
```

This code should be placed in the [functions.php](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

This action is located in fluentformpro/src/classes/FormStyler.php, fluentform/app/Hooks/actions.php
