惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

WordPress.com News

Purple: A WooCommerce Theme for WordPress.com Stores How to Monetize a Blog Without Turning It Into a Job WordPress.com Changelog: Custom AI Themes and A New Video Player Twenty-Five Years Later, We Remember September 11 8 Ways to Grow Website Traffic When Google Sends Less of It Changelog: Hosting Dashboard, ChatGPT Plugin, & WordPress 7.1 WordCamp US 2026 Recap: The Artist and the Algorithm WordPress Studio Is Now Agentic — Try the Beta WordPress.com ChatGPT Plugin: Manage Your Site from ChatGPT Every Site, One Click Away in the Hosting Dashboard When WordPress.com Support Knows It’s Time for a Human WordPress.com Guidelines: Give Your Site a Memory WordPress.com Student Plan: Free Websites Students Keep WordPress.com Student Plan: Free Websites Students Keep WordPress.com Changelog: Brand Memory and Better Renewal Warnings WordCamp US 2026 Schedule Highlights: Talks, Demos & More WordPress.com Changelog: New Blocks, Notes & Plan Changes 7 Reasons to Attend WordCamp US 2026 in Phoenix How to Find WordPress Meetups and WordCamps Near You 7 Reasons to Attend WordCamp US 2026 in Phoenix Master SEO & AIO: A Free Course for the AI Search Era WordPress.com Changelog: A More Flexible Editor WordPress Studio Just Got Faster, the CLI is Now Dependency-Free, and Sonnet 5 Support What Is Agentic Commerce? What It Means for Your Store How to Choose a Web Host: 7 Factors to Consider WordPress.com Changelog: Shape Your Newsletter Signup and Get Domain Help in Chat Feature Clips: Turn Posts Into Social-Ready Video Customize What Newsletter Subscribers See | WordPress.com Your WordPress Expert, Now on Desktop: Studio Code Beta Jetpack Search 7.0: Find Products Faster in WooCommerce
Build your first plugin with WordPress Studio and Cursor
Jonathan Bossenger · 2026-07-03 · via WordPress.com News

Earlier this year, we showed you how to use Claude Code with WordPress Studio to build your next plugin idea. While Claude Code is a great option, if you’re not comfortable using the terminal, installing and using it may be a bit daunting. 

Fortunately, there’s a popular AI coding editor called Cursor that offers a free tier you can try out. It’s been around since 2023, was pivotal in the explosion of the “vibe-coding” movement, and is still one of the most popular AI coding tools.

This guide will walk you through installing Cursor and WordPress Studio to build your first AI-generated plugin.

Why build WordPress plugins with AI

AI coding tools let you describe a plugin in plain language and have a working version generated in minutes — no need to write PHP from scratch or learn the WordPress plugin API first. 

Paired with a free local WordPress environment, you can build, test, and refine a plugin entirely on your own machine before it ever touches a live site. This guide uses Cursor, a popular AI code editor, alongside WordPress Studio.

What you’ll need

  • Cursor (free Hobby plan)
  • WordPress Studio (free, open source)
  • About 15 minutes
  • No prior coding experience required

1. Install Cursor

Installing Cursor requires navigating to the downloads page and downloading the right installer for your operating system. Once downloaded, run the installer and follow the installation instructions.

The first time you open Cursor, you’ll be asked to sign up for a Cursor account to access the AI Agent features. Cursor offers a free Hobby plan which you can use to try it out for your first build. 

Screenshot of the cursor login screen.

After you’ve signed up for an account, you’ll be redirected back to the Cursor application. Cursor might suggest some plugins to install, based on common requirements. You can skip this step and you’ll be taken to the screen where you can open your first project.

Screenshot of the Cursor new project screen.

2. Install WordPress Studio

Next, you’ll need a local WordPress installation. You can download WordPress Studio, which is completely free and open source, and it runs on macOS, Windows, and Linux.

As with Cursor, download the WordPress Studio installer, run it, and follow the on-screen instructions.

With Studio running, you can create a new local WordPress site by clicking on the “Add site” button. Select “Build a new site” and then “Empty site”. In the Add a site screen, you can give it a custom name, but the default “My WordPress Website” is fine for your first site.

After the site is created, click the Settings tab and note the Local Path value. This is the location of the WordPress files on your computer that you’ll need to open in Cursor.

3. Open the local WordPress Studio in Cursor

In Cursor, click on the “Open project” button, and navigate to the location of the WordPress files from the above step.

You’ll end up with the WordPress files in one pane, and the Agent chat in the other. 

Since Cursor is a fork of the VS Code editor, if you have VS Code installed, you might find the Cursor layout inherits any specific layout settings from VS Code. 

4. Build your plugin with the Cursor agent

In the Agent chat window, prompt your Cursor agent to build your first plugin. Give it some context and what you need:

We are in the root of the WordPress site folder. Create a plugin that adds a Welcome dashboard widget. The widget should only show the heading “Welcome!”.

Screenshot of the Cursor interface.

Hit Enter or click the Submit button, and Cursor will check the environment, create the required plugin folder, and generate the complete plugin file. 

Screenshot of the Cursor interface.

To review the generated code, click Review, or to accept the new plugin files, click Keep all.

5. Activate the plugin and test it

Go back to WordPress Studio and click WP Admin to open your WordPress admin. Navigate to Plugins, find your new plugin, and activate it.

Screenshot of the WordPress dashboard plugin screen.

Once activated, navigate to the dashboard, and you’ll see the blank widget with the “Welcome!” heading. You can move it to a different placeholder if you prefer.

Screenshot of the WordPress dashboard.

6. Build your next big plugin idea

From here, you can add more features. For this widget, you should display a different welcome message to each user, depending on their user role.

Go back to Cursor, and ask it to create this for you.

Update the Select Welcome Dashboard Widget plugin so that it displays a welcome message to the user based on their user role. Describe what activities the user can do on the site. 

Screenshot of the Cursor interface.

As with any AI tool, experimenting with prompting will help you achieve better results.

Connect Cursor to the WordPress.com MCP server

You might be building this Welcome widget to install on your WordPress.com hosted sites. While each of these sites will have the default WordPress user roles (administrator, editor, author, contributor, and subscriber), you might have sites that have different roles. For example, a WooCommerce store will also have a Customer and Shop Manager role.

Fortunately, you can use the WordPress.com MCP server to connect your Cursor agent to WordPress.com, and ask it to check which roles it needs to be aware of.

If you haven’t already, enable MCP access for your WordPress.com account.

You can connect your Cursor agent to WordPress.com by navigating to the Cursor plugin directory and searching for “WordPress.com”. 

Screenshot of the Cursor plugin directory.

Once you find the connector, click it, then click the “Add to Cursor” button. 

Screenshot of the MCP server install screen.

This will open the Cursor Settings screen with a prompt to install the MCP Server. Click Install, and the connector will be installed and configured.

Screenshot of the Cursor settings screen.

A new browser window will open to ask you to authorize the connection. Once you accept, the MCP server connection will be enabled.

Screenshot of the Cursor Tools authentication screen.

Now, you can ask your agent to interact with your WordPress.com account.

For example:

Check my WordPress.com sites and see if there are any custom roles that I will need to consider to update this plugin so that it works on any of my WordPress.com sites.

The Cursor agent will use the WordPress.com MCP connection to check your sites. It may ask clarifying questions like which site environments should be included or which ownership types. 

You can respond to the agent to give it more data:

Only production sites and only sites I own

Cursor will then use the connection to query all your sites, determine if any custom roles are in place, and update the plugin as needed.

What plugin will you build next?

Cursor + WordPress Studio + WordPress MCP is a powerful combination of tools for building your next plugin idea. 

Here are some tips when using AI to build plugins:

  • It’s always better to test the plugin out on a local WordPress installation first.
  • Give the agent specific context about what you want and what features you want to work on
  • Break complex features into smaller steps with specific prompts
  • If you’re not sure of something, you can ask the agent to explain it to you.
  • Learn to use code quality tools and linters to help the agent check for coding errors.
  • Start simple, then tackle more complex projects as you get comfortable.

If you build something fun, share it with us in the comments!