Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/little-buses-slide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/hwp-previews-wordpress-plugin": patch
---

Changed documentation links on wp-admin
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
# Actions & Filters

## Table of Contents

- [PHP Actions](#php-actions)
- [PHP Filters](#php-filters)
- [Examples](#examples)
- [Actions](#actions)
- [Filters](#filters)
- [Contributing](#contributing)

---
title: "Actions and Filters"
description: "Learn about the available PHP actions and filters in HWP Previews plugin for customizing plugin behavior, settings, and integrations."
---

This document lists the available PHP actions and filters provided by the HWP Previews plugin, along with explanations and usage examples. These hooks allow you to customize plugin behavior, settings, and integration with other plugins or your theme.

---

## PHP Actions

Expand All @@ -25,7 +16,6 @@ This document lists the available PHP actions and filters provided by the HWP Pr
| `hwp_previews_settings_init` | Fired after the settings page is initialized. |
| `hwp_previews_settings_form_manager_init` | Fired after the settings form manager is initialized. |

---

## PHP Filters

Expand All @@ -39,7 +29,6 @@ This document lists the available PHP actions and filters provided by the HWP Pr
| `hwp_previews_filter_available_post_types` | Filter the available post types for previews (affects settings UI and preview logic). |
| `hwp_previews_filter_available_post_statuses` | Filter the available post statuses for previews. |

---

## Examples

Expand Down
11 changes: 7 additions & 4 deletions plugins/hwp-previews/src/Templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@
<div class="inside hwp-previews-docs">

<ul>
<li><a href="https://github.com/wpengine/hwptoolkit/tree/main/plugins/hwp-previews#getting-started" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Getting Started', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/tree/main/plugins/hwp-previews#front-end-integration" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Front-End Integration', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/tree/main/plugins/hwp-previews#hwp-previews" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Getting Started', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/how-to/configure-previews/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Configure Previews', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/explanation/core-concepts/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Core Concepts', 'hwp-previews' ); ?></a></li>
<?php if ( $hwp_previews_faust_integration->get_faust_enabled() ) : ?>
<li><a href="https://github.com/wpengine/hwptoolkit/tree/main/plugins/hwp-previews#using-with-faustjs" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Using With Faust.js', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/how-to/integrate-with-faust/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Using With Faust.js', 'hwp-previews' ); ?></a></li>
<?php endif; ?>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/plugins/hwp-previews/ACTIONS_AND_FILTERS.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Actions and Filters', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/explanation/actions-and-filters/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Actions and Filters', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/tutorial/previews-with-wpgraphql/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Build Previews with Next.js and WPGraphQL', 'hwp-previews' ); ?></a></li>
<li><a href="https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/hwp-previews/tutorial/previews-with-rest/index.md" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Build Previews with Next.js and REST API', 'hwp-previews' ); ?></a></li>
</ul>
<p><?php esc_html_e( 'HWP Previews is part of the HWP Toolkit, our comprehensive suite of tools and examples for headless WordPress.', 'hwp-previews' ); ?></p>
<p><a class="button-secondary" href="https://github.com/wpengine/hwptoolkit" target="_blank" rel="noopener noreferrer">HWP Toolkit on GitHub</a></p>
Expand Down
Loading