The string given by $plugin_path is used as an array key for $wp-plugin_paths, this is pretty standard behaviour in setting an array so it can be accessed later, to retrieve $plugin_realpath via $wp_plugin_paths[$plugin_path].
If you want to see how it all comes out you can do:
add_action('init','print_plugin_paths');
function print_plugin_paths() {
global $wp_plugin_paths;
foreach ($wp_plugin_paths as $key => $value) {
echo "Plugin Path: ".$key." - ";
echo "Real Path: ".$value."<br>";
}
}
Related Posts:
- Get a list of all registered actions
- How can I force a file download in the WordPress backend?
- How to implement a customizable free OpenID authentication?
- Enabling free shipping on Woo Commerce by specific items [closed]
- What’s a reliable way to depend on another plugin?
- Woocommerce – Hide “add to cart” on free products
- WordPress apply_filters() Arguments Missing
- How to hide /wp-content/uploads/ from URL?
- Add image to post from external URL
- User profiles and object associations
- Share buttons on article footer
- WordPress plugin search does not work and updates are not shown, VPS install
- How to prepend to the_title for admin-side plugin’s use
- Gutenberg: Difference between “import” and “const” for dependencies
- Custom data-id wp_enqueue_script
- Settings API – input always updates over validation
- Creating search filter through plugin
- Should I host support forum on wordpress.org or my own website?
- How to setup a Network Plugin across the network with only my settings?
- jQuery Plugin to use WordPress functions in AJAX request
- Is it possible to insert images directly from the server?
- Can a plugin deactivate itself?
- “Members only” section of a WordPress site – self signup and no backend access
- Read text defined under __()
- Plugin Customization Lost During Plugin Upgates
- Plugin activation hook in an abstract class
- How to make my plugin able to be updated from admin panel?
- Shortcode button dosent work for all posts. Work for first post only
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- Is there a way I can find wordpress posts that don’t contain a word?
- Generate XML Sitemap for Blog on Magento Platform
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Redirection of users away from wp-admin (but not administrators)
- Cannot find a list of data selectors for Gutenberg editor
- WordPress Plugin [closed]
- Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work
- Cannot update user display_name field
- ACF only showing up in Homepage but doesn’t appears in all pages
- Send admin an email when a user’s search has no results
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- custom post type don’t appear in the home page
- Remove / overwrite some functions in buddypress.js
- Help with comments.php
- OceanWP settings are missing from Add New Post [closed]
- Creating a functionality plugin to edit seriously simple podcasting
- in source code but I can’t find it in files or plugins
- Historical customisations won’t go away [closed]
- Loop returns the current page’s permalink and guid instead of the post in the loop
- display connected User to post
- Can I restore a plugin that was accidentally deleted? (on localhost)
- Plugin upgrade failing during unzip
- How to add credit card validation check to wordpress [closed]
- Get access to WordPress when logged out
- How do you add a settings page to another menu?
- What plugin should I use to add Microformats to my blog
- Any way to change WP-PostRatings so you can only vote up?
- Plugin or ways to limit number of users logging in the website,
- Replace old theme that understand old css (vcex_icon_box css_animation)
- Stop a script on a single page
- WP Ajax DB issues
- ACF checkbox return format based on page
- How do I add a medium to the WordPress database with my own plugin?
- How to get database connection details without longing to cpanel in WordPress?
- Loading a plugin in a post template without using wp_head()
- How to translate wordpress blog to other languages?
- Override plugin images so that they are not removed when the plugin is updated
- Login/password protected “client page”
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Change custom rewrite rule when permalink is updated/changed
- Store admin page into variable
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- WP Plugin CSS not being applied to page
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- Unable to sync woocommerce variations
- Plugin hook breaks new WP 4.0 media library grid view?
- Contact Form loaded with Ajax
- How to load a plugin when doing an Ajax call? [duplicate]
- How to correct Error: message on website Twitter Feed
- homepage olderposts link showing page not found
- Image rotator plugin
- Vote It Up Plugin – Add ascending numbers to MostVotedAllTime Chart Function
- Choopy Video Playback in a popup using Artiss Youtube Embed [closed]
- How to fix vanilla comments extra iframe space
- MultiPostThumbnails and media queries
- Get a submitted value from front end post form for single template
- Automatically set posts to NoIndex depending on category?
- Custom time field won’t sort regardless of format
- Move specific javascript to the footer
- How to send email when my plugin is activated?
- Reply form used in wordpress.com
- Language switcher with flags – Polylang WP plugin
- PM PRO addon package check user access to a specific post
- this code is fiven by chat-gtp but nothing match even I key in the value of a cell. help!
- How do i fix this error?
- How do i display the number of images on the “post screen”
- Set the Social Icon Size in footer
- Use custom Javascript for a custom Elementor Widget [closed]
- How do I set WordPress to send 2 different emails based on criteria in the database when someone submits a form?
- SMTP email does not work even with the right firewall rules
- This is a plugin code that supposed to add badge/label Infront of post title but i don’t understand why it is showing the code tags in frontend