Add excerpt field to page
- Download this ZIP
- Upload to plugins
- Activate it
type ValueType = | |
| string | |
| number | |
| boolean | |
| null | |
| undefined | |
| (string | number | boolean | null | undefined)[] | |
function mapBooleans(key: string, value: ValueType) { | |
switch (value) { |
import { useCallback, useEffect, useMemo, useState } from "preact/hooks" | |
class StateTransitionError extends Error {} | |
function useFSM<T extends string>( | |
transitions: Record<T, T[]>, | |
options: { | |
throwOnTransitionError?: boolean | |
} = { throwOnTransitionError: true }, | |
) { |
Includes a WPGraphQL JWT token in every posts preview link. That can be used for an external application (e.g. Next.js) to include in the authorization header when contacting back the WordPress instance using the WPGraphQL.
This plugin intercepts WordPress posts and terms changes and pings an external service.
define('PING_UPDATES_URL', 'https://my-service.com/api');
to wp-config.php
or ping_updates_url
option in wp_options
define('ENABLE_PING_UPDATES_ON_TERMS_POSTS', true);
if you want to ping each associated post when a term is changedping_updates_authz_token
in wp_options
where the value is the token to include in the Authorization
headerAdds a where field to WPGraphQL content nodes (post, page and custom post types) to search by field using regexp or like. Supported fields are name, title, author, excerpt, status and mime_type.
wpgraphql-search-field.php
filewp-content/mu-plugins
This small plugin adds a new format to retrieve excerpt or title in text plain format instead of rendered.
wpgraphql-field-format-text-plain.php
filewp-content/mu-plugins
[{ | |
"id": "year", | |
"type": "year", | |
"label": "Em que ano ficou desempregado/a", | |
"min": 2008 | |
}, | |
{ | |
"id": "month", | |
"type": "select", | |
"label": "E em que mês", |