wordpress-stubs
wp-graphql
Our great sponsors
wordpress-stubs | wp-graphql | |
---|---|---|
2 | 53 | |
131 | 3,600 | |
2.3% | 0.4% | |
8.0 | 9.6 | |
10 days ago | 5 days ago | |
PHP | PHP | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wordpress-stubs
- wp-env IDE setup
-
🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper!
return [ 'patchers' => [ function ( $file_path, $prefix, $contents ) { /* * There is currently no easy way to simply whitelist all global WordPress functions. * * This list here is a manual attempt after scanning through the AMP plugin, which means * it needs to be maintained and kept in sync with any changes to the dependency. * * As long as there's no built-in solution in PHP-Scoper for this, an alternative could be * to generate a list based on php-stubs/wordpress-stubs. devowlio/wp-react-starter/ seems * to be doing just this successfully. * * @see https://github.com/humbug/php-scoper/issues/303 * @see https://github.com/php-stubs/wordpress-stubs * @see https://github.com/devowlio/wp-react-starter/ */ $contents = str_replace( "\\$prefix\\_doing_it_wrong", '\\_doing_it_wrong', $contents ); $contents = str_replace( "\\$prefix\\__", '\\__', $contents ); $contents = str_replace( "\\$prefix\\esc_html_e", '\\esc_html_e', $contents ); $contents = str_replace( "\\$prefix\\esc_html", '\\esc_html', $contents ); $contents = str_replace( "\\$prefix\\esc_attr", '\\esc_attr', $contents ); $contents = str_replace( "\\$prefix\\esc_url", '\\esc_url', $contents ); $contents = str_replace( "\\$prefix\\do_action", '\\do_action', $contents ); // ... } ] ]
wp-graphql
-
Why Everyone Hates WordPress
Are you dead set on building a Nuxt + Vue application? Partial to NextJS like I am? Well good news everyone, WordPress has done a pretty decent job over the past couple of years building out the WordPress API and enabling developers to leverage WordPress as a Headless CMS. Pair that with the amazing WPGraphQL Pluginand you’re cooking with JavaScript. You get all the benefits of really solid backend CMS that end users are familiar with, and can grasp with a 1 hour CMS training, distributed using your favorite flavor of JavaScript.
-
Nuxt3, Wordpress and ACF Flexible content types
It's very easy to use when you use https://www.wpgraphql.com/ Here's an example of a repeatable component I set up using the repeater filled. It might help you.
-
redirect headless wordpress frontend without affecting API
I am using Headless Wordpress with https://www.wpgraphql.com/ for API hosted on SiteGround and Nextjs for frontend.
-
Looking for a plugin/codebase using which I can enter and save data which will then be available via the REST API
I think you might be looking for WPGraphQL
-
Why is does modern HTML/CSS seem so complex and convoluted? (details in comment)
- WPGraphQL
-
I made my own WordPress Plugin!
Look at other popular plugins to see what they do, and how that's different from what you did. For example browse a bit through https://github.com/wp-graphql/wp-graphql
-
How to fetch data from a GraphQL endpoint into a NextJS 13 server component using the native fetch() API
As you can see I'm getting all the posts from my Wordpress GraphQL endpoint and receiving the title, excerpt, slug and date fields, there's more I can get if I follow the GraphQL API for Wordpress documentation, but that's all I need for the demo.
-
Show HN: New GraphQL API for WordPress (1.5 years of development, 16000 commits)
How does this compare to WPGraphQL https://www.wpgraphql.com that's been around for quite some time (https://github.com/wp-graphql/wp-graphql)
Did you find shortcomings with that plugin?
-
how to add login for site owner and functions to add and remove media/text from website?
You can use wordpress as a backend and then hook up your frontend through a graphql api plugin.
-
Build and deploy site when wordpress data update.
You want to use WP as a headless CMS. Look at https://www.wpgraphql.com
What are some alternatives?
phpstan-wordpress - WordPress extensions for PHPStan ⛏️
faustjs - Faust.js™ - The Headless WordPress Framework
mozart - Developers tool for WordPress plugins: Wraps all your projects dependencies in your own namespace, in order to prevent conflicts with other plugins loading the same dependencies in different versions.
elementor - The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
wordpress-seo - Yoast SEO for WordPress
wp-graphql-woocommerce - Add WooCommerce support and functionality to your WPGraphQL server
wp-react-starter - 🚀WordPress Plugin Boilerplate using modern web techs like TypeScript, SASS, and so on... on top of a local development environment with Docker and predefined GitLab CI for continous integration and deployment!
wordpress-popular-posts - WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
Symfony Dotenv - Registers environment variables from a .env file
objectbox-dart - Flutter database for super-fast Dart object persistence
monorepo-builder - Composer tools to maintain a monorepo
wp-graphql-jwt-authentication - Authentication for WPGraphQL using JWT (JSON Web Tokens)