In setup, set the plugin folder root:
$this->plugin_root = wp_normalize_path( WP_PLUGIN_DIR );
Then modify filter to check if file is in theme root or plugin root:
return $this->switch && ( strpos($norm, $this->root) === 0 || strpos($norm, $this->plugin_root) === 0 );
or to show all included files, don’t filter any of the results in grab:
return get_included_files();
Related Posts:
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Get plugin directory from a theme
- Recommended eCommerce Plugin for a T-Shirt Sales Business? [closed]
- Rewriting every url
- Automating deprecated call checks?
- Plugin updates are not shown
- post_id always wrong in plugin
- How to un-attach rich text editor from named textarea elements
- Post source link plugin – small modification
- How to add users roles dropdown in registration in wordpress
- Which hook callback has priority if both plugin and theme use the same hook?
- How to Create a Directory in a Plugin Folder?
- Declaring script dependencies between scripts enqueued with different action hooks
- Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?
- An Unexpected HTTP Error occurred during the API request
- Custom preview_post_link not working for draft post
- How can I reactivate a plugin without access to my dashboard?
- How to add custom style to Gutenberg?
- How can I use a video header that’s over 8MB?
- WordPress site migration addvice
- custom taxonomy and custom post type url conflict
- Hide extra menus from WordPress Dashboard
- Sending email from inside a plugin using PHP PEAR
- How to find out which plugin is blocking user?
- Error when setting up phpunit tests with wp-cli scaffold
- Insert new user with form submit ‘init’ hook
- How to display only subcategory
- Correct way to perform non-cacheable DB query
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- Custom rewrite rules not working with WPML
- Nextcloud integration with wordpress
- Display by Category in Admin
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- How to enable unlimited course retake for limited time in LearnPress?
- Nested shortcode functions accessing variable
- Editing a plugins element.style
- How to handle cookies from a WordPress plugin on a cached page?
- Does WP delete deprecated plugin/theme files on plugin/theme upgrade?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- How passing values to construct function with Actions?
- correct validate and sql query
- Turning on output buffering in a wordpress plugin
- Is there a plugin for uploading files such as PDF files?
- Register google jquery gets overwritten by plugin
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Measure and limit file uploads
- Location dependent rendering of locations? [closed]
- Why Does The `auto_update_plugin` Hook Disable Management?
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Is there a script to collect all hooks and filters provided by a plugin?
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- WP RSS Aggregator plugins breaks after switch to HTTPS
- Post status doesn’t update to ‘future’ every time?
- Grab ID from post from plugin and use it to create an object
- Enqueue script: link not working in page source
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- how to convert XML from URL to HTML
- i want to rewrite my custom plugin url
- Apply a Meta tag to one page only
- Can I remove an image from the Gallery without deleting it from the Media Library?
- Strange Cached File in Super Cache
- Wp-minify doesn’t seem to minify my JS code
- eaccelerator PHP error
- Plugin Hook When New Author Added
- Looking for a good way to include php code in posts, but using special include markup rather than direct php code
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- Best approach to make all tags searchable by the wordpress search function
- WordPress – Ultimate Auction for WooCommerce
- Can we hide a certain user in WP?
- Configure upload folder on WoComerce
- Show Custom Post on Frontend
- WordPress to be used more like an app?
- Hooking into the HTML header container
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- PHP header() not available to use in my plugin
- database – multiple wordpress installations using same database – can they share plugin settings?
- HyperDB failover Delay
- Add class as plugin for other plugins
- Display dashboard other than admin user
- Hidden Some Setting on Post or Page [duplicate]
- Creating themes using the one Plugin (Toolkit)
- WordPress Categories from Plugin
- How do I secure a subdomain using UCC SSL?
- How change menu for each user in plugin?
- Check if user is in a group of another site within multisite network [closed]
- Template from scratch: Sidebars not showing widget
- Home not showing in yoast breadcrumb
- Facebook meta tags not working properly on WordPress Site
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Redirect url in plugin to somewhere else?
- is there a plugin that allow editing pages from within pages without entering admin panel?
- Site is setup statically – how to make it content managable?
- WordPress site show white screen after updating some plugins (URGENT) [closed]
- plugin translations not reflected in admin dashboard
- Elementor with system colors instead of kit colors [closed]