# Hooks

All PorterWP public hooks are prefixed `porter_`.

## Actions

| Hook                                   | Args | Location                          |
| -------------------------------------- | ---- | --------------------------------- |
| [`porter_fs_loaded`](broken-reference) | –    | `includes/porter-freemius.php:41` |

## Filters

| Hook                                                                                  | Args                                                                | Location                                                    |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------- |
| [`porter_core_blockstyles_path`](../filters/porter_core_blockstyles_path)             | get\_stylesheet\_directory() . '/porter/inc/block/core/styles/css/' | `includes/porter-config-core-blocks.php:81`                 |
| [`porter_default_object_args`](../filters/porter_default_object_args)                 | $args, $group                                                       | `includes/porter-config.php:128`                            |
| [`porter_public_styles_default_args`](../filters/porter_public_styles_default_args)   | $defaults                                                           | `includes/porter-config-public.php:53`                      |
| [`porter_public_scripts_default_args`](../filters/porter_public_scripts_default_args) | $defaults                                                           | `includes/porter-config-public.php:90`                      |
| [`porter_editor_styles_default_args`](../filters/porter_editor_styles_default_args)   | $defaults                                                           | `includes/porter-config-admin.php:65`                       |
| [`porter_editor_scripts_default_args`](../filters/porter_editor_scripts_default_args) | $defaults                                                           | `includes/porter-config-admin.php:102`                      |
| [`porter_dynamic_blocks`](../filters/porter_dynamic_blocks)                           | $this->dynamic\_blocks                                              | `includes/porter-config-block-styles.php:12`                |
| [`porter_blockstyle_args`](../filters/porter_blockstyle_args)                         | $args, $blockName, $styles                                          | `includes/porter-config-block-styles.php:65`                |
| [`porter_blockstyles_path`](../filters/porter_blockstyles_path)                       | $path, $blockName, $styleName                                       | `includes/porter-config-block-styles.php:132`               |
| [`porter_block_patterns_path`](../filters/porter_block_patterns_path)                 | $path, $patternName                                                 | `includes/porter-config-patterns.php:135`                   |
| [`porter_core_pattern_categories`](../filters/porter_core_pattern_categories)         | $this->core\_pattern\_categories                                    | `includes/porter-config-patterns.php:206`                   |
| [`porter_block_path`](../filters/porter_block_path)                                   | $path                                                               | `includes/traits/blocks.php:68`                             |
| [`porter_block_folders`](../filters/porter_block_folders)                             | $folders                                                            | `includes/traits/blocks.php:79`                             |
| [`porter_wp_config_filepath`](../filters/porter_wp_config_filepath)                   | $filepath, $file                                                    | `includes/traits/config.php:58`                             |
| [`porter_wp_inc_filepath`](../filters/porter_wp_inc_filepath)                         | $filepath                                                           | `includes/traits/inc.php:15`                                |
| [`porter_wp_inc_filepath_exclusions`](../filters/porter_wp_inc_filepath_exclusions)   | $exclude\_paths                                                     | `includes/traits/inc.php:29`                                |
| [`porter_wp_inc_load_first_filepaths`](../filters/porter_wp_inc_load_first_filepaths) | $load\_first                                                        | `includes/traits/inc.php:44`                                |
| [`porter_acf_option_defaults`](../filters/porter_acf_option_defaults)                 | $defaults                                                           | `includes/acf/option-pages.php:42`                          |
| [`porter_filter_parsed_query`](../filters/porter_filter_parsed_query)                 | $query, $params                                                     | `includes/premium/filters/traits/trait-FilterParser.php:36` |
| [`porter_filter_event_date`](../filters/porter_filter_event_date)                     | \[                                                                  |                                                             |

```
        'start' => 'start_date',
        'end' => 'end_date',
    ] | `includes/premium/filters/traits/trait-FilterParser.php:122` |
```

\| [`porter_filter_tax_query_relation`](../filters/porter_filter_tax_query_relation) | 'AND', $query | `includes/premium/filters/traits/trait-FilterParser.php:287` | | [`porter_blocks_array`](../filters/porter_blocks_array) | $blocks | `includes/premium/custom-blocks/init.php:241` |
