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
2 changes: 1 addition & 1 deletion examples/next/webhooks-isr/.wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip",
"https://github.com/wp-graphql/wp-graphql-smart-cache/releases/download/v2.0.0/wpgraphql-smart-cache.zip",
"https://downloads.wordpress.org/plugin/code-snippets.3.6.8.zip",
"../../../plugins/wp-graphql-headless-webhooks"
"../../../plugins/wp-graphql-webhooks"
],
"config": {
"WP_DEBUG": true,
Expand Down
152 changes: 0 additions & 152 deletions plugins/wp-graphql-headless-webhooks/access-functions.php

This file was deleted.

20 changes: 0 additions & 20 deletions plugins/wp-graphql-headless-webhooks/deactivation.php

This file was deleted.

10 changes: 0 additions & 10 deletions plugins/wp-graphql-headless-webhooks/phpstan/constants.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ WORDPRESS_DB_USER=${DB_USER}
WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
WORDPRESS_DB_NAME=${DB_NAME}

PLUGIN_SLUG=wp-graphql-headless-webhooks
PLUGIN_SLUG=wp-graphql-webhooks
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/docs export-ignore
/phpstan export-ignore
/tests export-ignore
/wp-graphql-headless-webhooks export-ignore
/wp-graphql-webhooks export-ignore

/.coveralls export-ignore
/.distignore export-ignore
Expand All @@ -18,4 +18,4 @@
/composer.lock export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/wp-graphql-headless-webhooks.php export-ignore
/wp-graphql-webhooks.php export-ignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<ruleset name="Coding Standards for WPGraphQL Headless Webhooks plugin" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<ruleset name="Coding Standards for WPGraphQL Webhooks plugin" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Sniffs for the WPGraphQL plugin ecosystem </description>

<!-- What to scan: include any root-level PHP files, and the /src folder -->
<file>./access-functions.php</file>
<file>./wp-graphql-headless-webhooks.php</file>
<file>./wp-graphql-webhooks.php</file>
<file>./activation.php</file>
<file>./deactivation.php</file>
<file>./src/</file>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WPGraphQL Headless Webhooks
# WPGraphQL Webhooks

## Overview

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* Runs when the plugin is activated.
*
*/
function graphql_headless_webhooks_activation_callback(): callable {
function graphql_webhooks_activation_callback(): callable {
return static function (): void {
// Runs when the plugin is activated.
do_action( 'graphql_headless_webhooks_activate' );
do_action( 'graphql_webhooks_activate' );
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ setup_file_permissions() {

setup_plugin() {
if [ "${SKIP_WP_SETUP}" = "true" ]; then
echo -e "$(warning_message "Skipping wp-graphql-headless-webhooks installation...")"
echo -e "$(warning_message "Skipping wp-graphql--webhooks installation...")"
return 0
fi

# Add this repo as a plugin to the repo
if [ ! -d $WORDPRESS_ROOT_DIR/wp-content/plugins/wp-graphql-headless-webhooks ]; then
if [ ! -d $WORDPRESS_ROOT_DIR/wp-content/plugins/wp-graphql-webhooks ]; then
echo -e "$(status_message "Symlinking the plugin to the WordPress plugins directory...")"

cd "$ORIGINAL_PATH"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wpengine/wp-graphql-headless-webhooks",
"name": "wpengine/wp-graphql-webhooks",
"description": "Headless webhooks for WPGraphQL",
"type": "library",
"license": "GPL-3.0-or-later",
Expand Down Expand Up @@ -54,10 +54,7 @@
"autoload": {
"psr-4": {
"WPGraphQL\\Webhooks\\": "src/"
},
"files": [
"access-functions.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down Expand Up @@ -97,12 +94,12 @@
"php:psalm:fix": "psalm --alter"
},
"archive": {
"name": "wp-graphql-headless-webhooks",
"name": "wp-graphql-webhooks",
"exclude": [
"/.*",
"/assets",
"/bin",
"/wp-graphql-headless-webhooks",
"/wp-graphql-webhooks",
"/composer.lock",
"/phpstan.neon.dist",
"/README.md"
Expand Down
Loading