Visual Portfolio has several WP hooks that let you extend functionality.
Portfolio Output Actions
Action Name | Attributes | Description |
vpf_before_get_output | $options | before portfolio output |
vpf_after_get_output | $options | after portfolio output |
vpf_before_wrapper_start | $options, $style_options | before portfolio wrapper start |
vpf_after_wrapper_start | $options, $style_options | after portfolio wrapper start |
vpf_before_items_wrapper_start | $options, $style_options | before portfolio items wrapper start |
vpf_after_items_wrapper_start | $options, $style_options | after portfolio items wrapper start |
vpf_before_items_wrapper_end | $options, $style_options | before portfolio items wrapper end |
vpf_after_items_wrapper_end | $options, $style_options | after portfolio items wrapper end |
vpf_before_wrapper_end | $options, $style_options | before portfolio wrapper end |
vpf_after_wrapper_end | $options, $style_options | after portfolio wrapper end |
vpf_layout_elements | $options, $element, $position | layout element action (such as filter, sort, pagination, etc.) |
Controls Actions
Action Name | Attributes | Description |
vpf_before_register_controls | – | before register block controls |
vpf_after_register_controls | – | before register block controls |
vpf_registered_control | $name, $args | register control data |
Assets Actions
Action Name | Attributes | Description |
vpf_before_assets_enqueue | $options | before assets enqueue |
vpf_after_assets_enqueue | $options | after assets enqueue |
vpf_before_assets_register | – | before assets register |
vpf_after_assets_register | – | after assets register |
Other Actions
Action Name | Attributes | Description |
vpf_parse_blocks | $blocks, $location, $is_reusable, $is_inner_blocks | parse blocks data |
vpf_preview_template | – | block preview template |
vpf_before_preview_output | – | before preview output content |
vpf_after_preview_output | – | after preview output content |