WP Manifestindependent plugin directory
manifest / integrations / wp-graphql-get-extended

WP GraphQL Get Extended WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Adds a WP GraphQL field that replicate get_extended() function behavior.

★ 1stars
v1.0.2latest · 4 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/armandphilippot/wp-graphql-get-extended/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WP GraphQL Extended

Adds a WP GraphQL field that replicate get_extended() function behavior. It allows you to obtain the content before/after the more tag.

Requirements

Description

By default, the get_extended() function from WordPress is not implemented in WP GraphQL. I'm used to use it, so I decided to create this feature.

If you don't know get_extended, you can read more information in WordPress documentation. It allows you to split your content into two parts: the one before the more tag and the one after.

This plugin allows you to retrieve this two parts for each posts including Custom Post Types. You can also choose the output format: raw or rendered.

Query example:

query SinglePost($slug: String!) {
    postBy(slug: $slug) {
        contentParts {
            beforeMore(format: RAW)
            afterMore
        }
    }
}

Note: If your post does not contain a more tag, the beforeMore part contains your post and the afterMore part is empty.

Installation

Download this repo, then put the plugin inside your wp-content/plugins/ directory and activate it in your WordPress admin.

License

This WordPress plugin is open-source and available under the GPL-v2-or-later license.

Releases

2 releases.

Tag
Published
v1.0.2 latest
Mar 2, 2022 4 years ago
Dec 7, 2021 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WP GraphQL Get Extended 1.0.2 · audited by WP Registry

No security issues found.

Audited release
1.0.2
Findings
none
Worst severity
—
Content hash
e96856b8b84a4282770b0f19…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.