update wpgraphql endpoint url
title: "Update WPGraphQL Endpoint URL" wordpressUri: "/recipes/update-wpgraphql-endpoint-url/" wordpressId: "2462" group: "WP Admin" summary: "You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return 'cutepuppies'; }; add_filter( 'graphql_endpoint', 'my_new_graphql_endpoint' ); This will change the graphql en…"
You can modify the WPGraphQL endpoint in code with the following:
function my_new_graphql_endpoint() {
return 'cutepuppies';
};
add_filter( 'graphql_endpoint', 'my_new_graphql_endpoint' );
This will change the graphql endpoint url from /graphql to /cutepuppies
This also updates the WPGraphQL settings page:

这篇文档对你有帮助吗?
谢谢你的反馈!