{"id":271540,"date":"2026-01-15T22:32:29","date_gmt":"2026-01-15T22:32:29","guid":{"rendered":"https:\/\/en-au.wordpress.org\/plugins\/code-finder-wp\/"},"modified":"2026-01-15T23:40:29","modified_gmt":"2026-01-15T23:40:29","slug":"source-lens-code-finder","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/source-lens-code-finder\/","author":23429891,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Source Lens \u2013 Code Finder","header_author":"Optimatio.io","header_description":"A safer, faster, developer-friendly way to find where code lives in WordPress. Search functions, hooks, shortcodes, strings, and more across themes and plugins.","assets_banners_color":"74568a","last_updated":"2026-01-15 23:40:29","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/optimatio.io","header_author_uri":"https:\/\/optimatio.io\/about","rating":0,"author_block_rating":0,"active_installs":100,"downloads":481,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"optimatioseo","date":"2026-01-15 22:44:26"},"1.0.1":{"tag":"1.0.1","author":"optimatioseo","date":"2026-01-15 23:19:03"},"1.0.2":{"tag":"1.0.2","author":"optimatioseo","date":"2026-01-15 23:40:29"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3440665,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3440665,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3440665,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Main search interface with two search modes","2":"Code search results with highlighted matches","3":"File search results with source code viewer","4":"Advanced search options"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[254090,254093,254091,254092,254094],"plugin_category":[43],"plugin_contributors":[254088],"plugin_business_model":[],"class_list":["post-271540","plugin","type-plugin","status-publish","hentry","plugin_tags-code-finder","plugin_tags-code-finder-tool","plugin_tags-find-a-code","plugin_tags-find-code-in-wp","plugin_tags-strings-locator","plugin_category-customization","plugin_contributors-optimatioseo","plugin_committers-optimatioseo"],"banners":{"banner":"https:\/\/ps.w.org\/source-lens-code-finder\/assets\/banner-772x250.png?rev=3440665","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/source-lens-code-finder\/assets\/icon-128x128.png?rev=3440665","icon_2x":"https:\/\/ps.w.org\/source-lens-code-finder\/assets\/icon-256x256.png?rev=3440665","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Source Lens \u2013 Code Finder<\/strong> is the ultimate code search tool for WordPress. It helps developers and site owners locate where any code lives in their WordPress installation \u2013 whether it's in theme files, plugin files, the database, or even dynamically injected by other plugins.<\/p>\n\n<h4>Two Powerful Search Modes<\/h4>\n\n<p><strong>1. Find Code\/Strings<\/strong> \u2013 Search for any text, function, hook, shortcode, or code snippet inside files. Perfect for finding where a specific piece of code is used.<\/p>\n\n<p><strong>2. Find File by Name<\/strong> \u2013 Search for files by their name (e.g., <code>header.php<\/code>, <code>functions.php<\/code>, <code>style.css<\/code>) and view their full source code instantly.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Search Everywhere<\/strong> \u2013 Search across themes, plugins, WordPress core, and the database<\/li>\n<li><strong>View Full Source Code<\/strong> \u2013 Find any file by name and view its complete source code<\/li>\n<li><strong>Find Dynamically Injected Code<\/strong> \u2013 Detects code added by other plugins (like Google Tag Manager scripts from code snippet plugins)<\/li>\n<li><strong>Multiple Search Types<\/strong> \u2013 Auto-detect, text string, function, hook, shortcode, class, regex, constant, CSS, and HTML<\/li>\n<li><strong>Page Builder Support<\/strong> \u2013 Search inside Elementor, Divi, Beaver Builder, and Gutenberg blocks<\/li>\n<li><strong>WooCommerce Support<\/strong> \u2013 Search products, orders, settings, and WooCommerce-specific data<\/li>\n<li><strong>Code Snippets Detection<\/strong> \u2013 Finds code stored in popular snippet plugins (WPCode, Code Snippets, Insert Headers and Footers, etc.)<\/li>\n<li><strong>Safe &amp; Read-Only<\/strong> \u2013 Never modifies any files on your server<\/li>\n<\/ul>\n\n<h3>Short Description<\/h3>\n\n<p>Find where code lives in WordPress. Search functions, hooks, shortcodes and strings across themes and plugins.<\/p>\n\n<h3>How to Use<\/h3>\n\n<h4>Finding Code or Text Strings<\/h4>\n\n<ol>\n<li>Go to <strong>Tools \u2192 Source Lens \u2013 Code Finder<\/strong><\/li>\n<li>Make sure <strong>\"Find Code\/Strings\"<\/strong> mode is selected (default)<\/li>\n<li>Enter your search query. Examples:\n\n<ul>\n<li><code>add_action<\/code> \u2013 Find all uses of the add_action function<\/li>\n<li><code>wp_enqueue_script<\/code> \u2013 Find where scripts are enqueued<\/li>\n<li><code>GTM-XXXXXX<\/code> \u2013 Find your Google Tag Manager container ID<\/li>\n<li><code>[contact-form]<\/code> \u2013 Find where a shortcode is used<\/li>\n<li>Any text or code snippet you want to locate<\/li>\n<\/ul><\/li>\n<li>Choose a <strong>Search Type<\/strong> (Auto Detect works for most cases)<\/li>\n<li>Choose a <strong>Search Scope<\/strong> (Everything, specific theme, specific plugin, etc.)<\/li>\n<li>Click <strong>Search<\/strong> to find all matches<\/li>\n<\/ol>\n\n<h4>Finding Files by Name<\/h4>\n\n<ol>\n<li>Go to <strong>Tools \u2192 Source Lens \u2013 Code Finder<\/strong><\/li>\n<li>Click <strong>\"Find File by Name\"<\/strong> mode<\/li>\n<li>Enter a file name. Examples:\n\n<ul>\n<li><code>header.php<\/code> \u2013 Find all header.php files<\/li>\n<li><code>functions.php<\/code> \u2013 Find all functions.php files<\/li>\n<li><code>style.css<\/code> \u2013 Find all style.css files<\/li>\n<li><code>elementor<\/code> \u2013 Find all files with \"elementor\" in the name<\/li>\n<\/ul><\/li>\n<li>Click <strong>Search<\/strong> to see matching files<\/li>\n<li>Click <strong>\"View Source Code\"<\/strong> on any file to see its full contents<\/li>\n<\/ol>\n\n<h4>Advanced Options<\/h4>\n\n<ul>\n<li><strong>Case Sensitive<\/strong> \u2013 Match exact letter casing<\/li>\n<li><strong>Whole Word<\/strong> \u2013 Only match complete words<\/li>\n<li><strong>Regex Mode<\/strong> \u2013 Use regular expressions for complex patterns<\/li>\n<li><strong>Search Encoded<\/strong> \u2013 Find base64 encoded content<\/li>\n<li><strong>Search Runtime<\/strong> \u2013 Find dynamically injected code from other plugins<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>source-lens-code-finder<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Navigate to <strong>Tools \u2192 Source Lens \u2013 Code Finder<\/strong> to start searching.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20the%20plugin%20modify%20files%3F\"><h3>Does the plugin modify files?<\/h3><\/dt>\n<dd><p>No. Source Lens \u2013 Code Finder is completely read-only and never changes any files on your server. It only reads and displays code.<\/p><\/dd>\n<dt id=\"can%20i%20find%20code%20added%20by%20other%20plugins%3F\"><h3>Can I find code added by other plugins?<\/h3><\/dt>\n<dd><p>Yes! The plugin can detect code injected by other plugins through WordPress hooks. This includes tracking codes (Google Tag Manager, Analytics), code snippet plugins (WPCode, Code Snippets), and more.<\/p><\/dd>\n<dt id=\"what%20file%20types%20can%20i%20search%3F\"><h3>What file types can I search?<\/h3><\/dt>\n<dd><p>PHP, JavaScript, CSS, HTML, JSON, XML, Markdown, SCSS, LESS, and template files.<\/p><\/dd>\n<dt id=\"can%20i%20view%20the%20full%20source%20code%20of%20a%20file%3F\"><h3>Can I view the full source code of a file?<\/h3><\/dt>\n<dd><p>Yes! Use the \"Find File by Name\" mode, search for the file, and click \"View Source Code\" to see the complete file contents.<\/p><\/dd>\n<dt id=\"what%20php%20version%20do%20i%20need%3F\"><h3>What PHP version do I need?<\/h3><\/dt>\n<dd><p>The plugin requires PHP 7.4 or later.<\/p><\/dd>\n<dt id=\"is%20it%20safe%20to%20use%20on%20a%20live%20site%3F\"><h3>Is it safe to use on a live site?<\/h3><\/dt>\n<dd><p>Yes, the plugin is completely safe. It only reads files and database content \u2013 it never writes or modifies anything.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Two search modes: Find Code\/Strings and Find File by Name<\/li>\n<li>Search across themes, plugins, WordPress core, and database<\/li>\n<li>View full source code of any file<\/li>\n<li>Detect dynamically injected code from other plugins<\/li>\n<li>Support for page builders (Elementor, Divi, Beaver Builder, Gutenberg)<\/li>\n<li>WooCommerce integration<\/li>\n<li>Code snippets plugin detection<\/li>\n<li>Advanced search options (regex, case sensitive, whole word)<\/li>\n<\/ul>","raw_excerpt":"Source Lens \u2013 Code Finder is the ultimate code search tool for WordPress. It helps developers and site owners locate where any code lives in their Wor &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/271540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=271540"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/optimatioseo"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=271540"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=271540"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=271540"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=271540"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=271540"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=271540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}