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?
2 Answers
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")'
-
-
2
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" ./
wp-content/plugins
orwp-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.