All Docs Articles

Global Content Filters

The Greyd Global Content plugin integrates deeply with WordPress through a series of filter hooks. Filters allow you to intercept data, change it and pass it back to the plugin at strategic points in the workflow. By hooking into these filters you can customise how the plugin retrieves global posts, builds global IDs, manages distribution, […]

read more

Global Content Filter Snippets

The following examples demonstrate how you might hook into these filters in your own plugin. Each example assumes that the Greyd Global Content plugin is active. For a full list of available filters, see the Global Content Filters documentation. Add a Custom Property to the Global Post Object PHPCopy// Add a custom field to every […]

read more

Manual Trigger events

The Trigger feature in the Greyd Plugin allows Trigger Events to be manually triggered. See the Trigger Filters documentation for more details about the PHP filters. Use the following method to manually trigger a trigger event via JavaScript: JavaScriptCopy/** * Trigger a custom greyd-trigger Event. * * Function renamed from 'greyd_trigger.trigger()' to 'greyd.trigger.trigger()' * so […]

read more

Greyd Forms Actions Snippets

Here are two examples of how you can use the Greyd Form Actions. Excecute code before saving an entry PHPCopyfunction greyd_forms_action_before_entry_example( $form_data, $form_id ) { $form = get_post( $form_id ); if ( $form && $form->post_name === 'my-contact-form' ) { $option_value = get_option( 'my_custom_option' ); do_action( 'greyd_forms_log', $option_value, 'Custom option value' ); if ( $option_value === […]

read more

Action & Filter Hooks Snippets

This page provides code snippets demonstrating how to use action and filter hooks in Greyd.Suite. The examples complement the hook reference and illustrate practical ways to extend or adapt functionality beyond what is described in the user-facing documentation.

read more

Classes

Here you can find a few selected public classes provided by Greyd.Suite. It explains their purpose, structure, and available methods, offering developers a reference for extending or integrating with the plugin beyond the user-facing documentation.

read more

APIs

Here you can find the available APIs in Greyd.Suite. It outlines how developers can interact with plugin features programmatically and extends the user-facing documentation by focusing on technical endpoints and integration details.

read more

Post Export: Preparred_Post

Greyd\\Preparred_Post is a data abstraction for WordPress posts that you can reliably export from one site and import into another. The class wraps a post’s core fields and augments them with everything needed for a safe round-trip: post meta, taxonomy terms, nested references found inside content or meta, attached media, language metadata, and optional menu […]

read more

Post Export Filter Snippets

The following examples illustrate how third‑party developers can use these filters to extend the post export and import logic. For more information about the filters, see the Post Export Filter documentation. Customise export query arguments Exclude password‑protected posts from being exported by altering the query arguments: PHPCopyadd_filter( 'greyd_export_post_query_args', function( $query_args, $post_id, $args ) { // […]

read more

Post Export Filters

The post export feature of the Greyd Plugin allows administrators to export posts from any supported post type and later import them into another site. During the export and subsequent import the plugin exposes a series of WordPress filters that enable developers to intervene in the process. These filters let you adjust the query used […]

read more