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

推荐订阅源

Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
D
Docker
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MyScale Blog
MyScale Blog
A
About on SuperTechFans
博客园 - 【当耐特】
U
Unit 42
H
Help Net Security
博客园 - 三生石上(FineUI控件)
V2EX - 技术
V2EX - 技术
T
Tor Project blog
博客园 - 叶小钗
G
Google Developers Blog
S
Securelist
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
aimingoo的专栏
aimingoo的专栏
C
Cybersecurity and Infrastructure Security Agency CISA
博客园_首页
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
The Register - Security
The Register - Security
Recorded Future
Recorded Future
NISL@THU
NISL@THU
量子位
L
LangChain Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CERT Recently Published Vulnerability Notes
The Hacker News
The Hacker News
D
DataBreaches.Net
小众软件
小众软件
罗磊的独立博客
Forbes - Security
Forbes - Security
The Last Watchdog
The Last Watchdog
Jina AI
Jina AI
I
InfoQ
S
Schneier on Security
Recent Announcements
Recent Announcements
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
S
Secure Thoughts

WordPress.com News

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 WordPress.com Changelog: Sharper Image Editing and a New Way to Multitask Meet Desktop Mode: Turn WordPress Admin Into a Desktop Workspace How to Make Your Website More Discoverable by AI | WordPress.com Develop Locally on Linux with WordPress Studio 10 New WordPress.com Features Just Landed WordPress.com Is Now Available in Stripe Projects WordCamp Europe 2026: Worth the Wait A Better Client Feedback Loop with Studio Code WordPress.com Changelog: WordPress 7.0 and Ways to Repurpose Your Written Content WordPress 7.0 Has Arrived: Here’s Everything You Need to Know WordPress 7.0 Has Arrived: Here’s Everything You Need to Know Now in the Reader: Bluesky, Mastodon, and the Fediverse Introducing Write: A New Way to Post, Built for Writers Meet WordCamp Agent: A Preview of the WordPress Memory Layer Turn Your Blog Posts Into Podcast Episodes WordPress.com Changelog: Launch a Podcast and Update Your Friends Blueprints Gallery Is Now Available in WordPress Studio Inside WordPress.com’s Security Response to the Essential Plugin Attack Achievement Unlocked: Your WordPress.com Milestones Now Have a Home Your Podcast Belongs With Your Blog and Newsletter Easy Site Editor – Coming Soon Easy Site Editor – Now in Beta Introducing Lately, now in beta Introducing WordPress Workspace for Mac WordPress.com Changelog: AI Assistant Opt-in on All Current Paid Plans and A New Way to Build Sites from Your Terminal Go From Idea to Live Ecommerce Store in One Hour A New Theme for Short-Form Blogging on WordPress.com Your WordPress Expert in the Terminal: Try the Studio Code Beta WordPress.com Changelog: Try the WordPress 7.0 Beta and a One-Click Solution for Plugin Errors Spry Fox Has Been Making Games for 15 Years. Their Blog Still Matters. How to Build an Endless Stream of Content Ideas with WordPress and Claude How HealthPress.io Used WordPress.com to Power a Growing European Lifestyle Health Movement Murphy Levesque Co-Founded an Animal Rescue at 11. Her WordPress.com Site Helped Save Over 100 Animals. What We Learned (and Loved) at WordCamp Asia 2026 in Mumbai How to Choose Headless WordPress Hosting: A 2026 Checklist How Knockers Design Builds Complex Client Work on WordPress.com WordPress.com Changelog: A New Telegram Bot and Complimentary Newsletter Subscriptions The Top 10 Creative WordPress Themes with Real Personality Give Friends Free Access with Complimentary Subscriptions How WordPress 7.0 Is Building the Foundation for AI-Powered Sites New in WordPress Studio: Studio CLI on npm & phpMyAdmin Access Plugins, Global Styles, and More: Now on Every WordPress.com Paid Plan How Consultings Company Became Brazil’s First Automattic Partner by Betting on Owned Digital Top WordPress Design Trends for 2026: Interactivity, AI, and the Return to Ownership WordPress.com Changelog: Enabling AI Agents to Work on Your Site and More Control Over Newsletter Sending Barbara Kingsley Started TikTok at 77. Now She Has 100,000 Followers and a Website to Match.
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!