Action & Filter Hooks
Michiel Tramper edited this page Apr 4, 2018
·
1 revision
WP Components has several filters by which developers can modify information.
The filters allow modifying the template that is used for displaying any atom or molecule and the properties that are processed.
If you are altering filters, make sure you always return the first parameter :).
Name | Passed parameters | Description |
---|---|---|
'components_{$type}_path' |
$path The file path to an atom or molecule, $template The atom or molecule load, such as 'header' or 'breadcrumbs' . |
Allows filtering the file path for a given atom or molecule, where {$type} can be either 'atom' or 'molecule' . |
'components_{$type}_properties' |
$properties The array of properties for any atom or molecule, $template The atom or molecule load, such as 'header' or 'breadcrumbs' . |
Allows filtering the properties for a given atom or molecule, where {$type} can be either 'atom' or 'molecule' . |