I have to change a few things in a page that I have not created. I have to insert some text inside a contact form. When I go to edit that page all I see is some shortcode. It's a custom shortcode that looks like [companyName_apply_form]. I have no idea where it comes from. It's not coming from the contact form plugin that created the other contact forms in the page and I also can't find anything in the template files. Any idea where a custom shortcode like that may come from?

  • Has another developer worked on this site? If so, it may be a custom plugin, located in either the wp-content/plugins or wp-content/mu-plugins directories. The shortcode could also be registered by a custom theme. In short, such a shortcode could come from virtually any 3rd-party extension to your site.
    – bosco
    Mar 27 '17 at 8:45
  • Yes it was made by a developer before me that we have no contact with. Thanks for the leads, I'll check those directories.
    – Sergi
    Mar 27 '17 at 8:49
  • There is a plugin that works 95% of the time : Shortcode Finder. But direct searching the directory on local drive works the best
    – Jenny Chen
    Aug 23 '20 at 17:30

Just use the Windows search bar in wp-content directory and search for companyName_apply_form. You should find the file where the shortcode is created.

To add a shortcode in Wordpress you normally use this syntax:

'add_shortcode("shortcode_name", "function_name")'
  • I only have FTP access.
    – Sergi
    Mar 27 '17 at 9:12
  • 2
    Download the wp-content directory locally. Mar 27 '17 at 9:53

If you only have FTP access and you don't want to download the entire wp-content directory.

Try logging in via ssh and using grep in your wp-content directory:

grep -iRl "shortcode_name" ./

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.