Giving Cursor Wordpress Plugin Code

Hello, i am a novice user.

trying to utilize Cursor to assist with adding basic features/fixes for plugins on my wordpress website.

is there a way for me to provide all the plugin code to Cursor so that i can then ask it about the code and have it assist me with extending certain existing features and such?

i am not clear on how to show cursor the entire code base for a specific plugin.

thank you for any help you can provide.

Quick followup: I have downloaded my entire wordpress website, including plugins and have it stored locally.

I then went to File > Add Folder to Workspace and added all the files to cursor.

But how do i get Cursor to “read” all that code? or code for a specific directory like /wp-content/plugins/myplugin ?

thanks!

Hi, those are great steps so far.

Now you can instruct the AI to do what needs to be done. e.g. if its a change for one plugin and you know which one then provide it the name and the required changes.

Note that for Wordpress the data in the database is also important part of plugins. So you may need to have that locally as well, depending on the task.

Example:

In plugin xyz change the display of button to ....

Make sure to test the change locally, depending on your OS and setup you can easily run PHP and a database.

1 Like

Hey, you don’t need to add the entire WordPress project to Cursor. Usually, WordPress developers open only specific themes or plugins in the editor to separate them from the WordPress core.

1 Like

Thanks for your response.

Apologies for asking, as i am still getting used to Cursor: how do i open specific themes or plugins within the Cursor Editor so that cursor indexes the code itself?

Thank you for any guidance you can provide.

Update: I went to file > open folder and then selected my plugin folder. that seems to be working, as cursor indicates it is now indexing the code.

Will update this post if i run into any issues.

thank you again for responding.

1 Like