WordPress how to find where a shortcode comes from

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")'

So with basic linux skills, you can find the function_name + file that define the shortcode_name

grep "add_shortcode" * -r|grep submit_job_form

… and the results

wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-shortcodes.php

 


Also published on Medium.

Leave a Reply

Your email address will not be published. Required fields are marked *