See Determining Plugin and Content Directories.
plugins_url( 'filename', __FILE__ );
… returns the full URI to the file in your plugin. For themes you use:
get_stylesheet_directory_uri() . '/path/to/file';
Related Posts:
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Hide prices and checkout functionality in woocommerce
- How do I exclude plugins from getting automatically updated?
- Where can I sell WordPress themes and plugins? [closed]
- How can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- Shared functionality in plugins and themes
- How to add favicon to my site – in both front end and admin panel
- Create theme files for plugin
- Reordering themes in admin panel
- How get list of updates of wp site?
- How do I make my wordpress page more friendly for mobile viewers?
- How can I list only sites that use a particular theme or plugin?
- disable active plugins for specific theme
- Check javascript file Proper way in functions.php
- Should I use RIPS tool to test my themes and plugins?
- Make the css of the widget overwrite theme css
- Themes VS Plugins [duplicate]
- A way to sort WordPress themes? [closed]
- Can a WordPress plugin or theme contain a virus?
- adding a text message beside the comment submit button
- WordPress site migration addvice
- Why are some of my thumbnails not being generated?
- Making menu link open in new tab?
- add_meta_box (Will display only in specific page admin WordPress)
- How to Know if a Plugin can be used with my Theme [closed]
- Not able to open category post [closed]
- Reusable functions and tools (Framework)
- Only Homepage not loading properly
- Using custom JS plugins with WordPress?
- Globally register styles but enqueue them selectively
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- Admin Theme customization
- (FES EDD) New vendor submission page is blank
- Custom wordpress Theme and Plugin repository
- Overwrite category head title
- How to check if my wordpress websiste is nulled or not?
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- Create custom pages with a plugin
- Does heavy theme and plugins affect server’s response time? [closed]
- Proper way to use plugin functions in functions.php
- Theme Custom Pages
- how remove font to increase site speed load
- Use $variable from file1.php in file2.php (different file paths)
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- How to find the list of custom post type where logged in user is author
- What is the purpose of WP_CONTENT_URL?
- How can I use my custom wordpress theme on two websites? [closed]
- why need theme,if page builder is there in wordpress [closed]
- speed up pagination for huge database
- Can I filter a function created by a theme or a plugin?
- Overwrite add_image_size defined by theme
- How to check homepage contain blog post?
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- Is it possible for a plugin to prevent certain plugins from being installed?
- How do you create a re-useable HTML fragment in wordpress
- plugin inside a wordpress theme
- Identify current wordpress theme
- Share plugins, themes, and multi post in a multidomain network
- Removing the custom_image_header from wp_head
- Gantry Framework: new page loads homepage content instead of page content
- Upgrade not working & themes not supporting
- Plugin Admin panel checkbox unchecked after submit
- use EDD Content Restriction for restricting php in template
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- Can’t load the the canges of field groups [duplicate]
- Javascript console errors and WSOD on edit post pages
- How Can I Create A Form In WordPress For Subscribers To Alert Them about new Listing posted?
- What plugin would make this happen? If is the theme
- WordPress site hamburger menu toggle not working
- WordPress wp get_temp_dir return non exiting folder, thus failing plugin & themes update
- Link custom post type to page
- How to disable a widget area of a specific page?
- when i activate my WordPress plugin cannot see customizer options or preview
- Writing SEO for Homepage when homepage is set to display latest posts
- Showing different js file for different theme in wordpress customizer api
- Getting unknown text in footer of email
- Seeking specific WordPress Layout
- Description: Too much time has passed without sending any data for document
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- WordPress Theme/Plugin Install (about FTP Connection)
- WordPress core update fails – no issues with plugin updates
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- How to add the functionality of WordPress needed to be installed to be mandatory while installing themes
- Incentive theme – Getting ’You do not have sufficient permissions’ while trying to install plugins
- How do I make the selected layout display for all MarketPress pages?
- Issues with Post 2 Post Plugin
- Disqus plugin outputs script as literal text
- Can’t get custom user meta to show in header
- How to get current template file used by WordPress?
- How to make only selected posts appear on a selected wordpress page
- How to work email subscribe in WordPress?
- Terms id wordpress error
- How to make wordpress backend mobile optimized.?
- wordpress illegal string offset ‘parameter’ error
- What is phpBB? Is it something like a plugin which I can use in WordPress? [closed]
- Is there a way to stop the theme and especially plugins listed?
- Am having issues intergrating this api into my wordpress site, any help please?
- How to add links to different language versions of WordPress
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- Problem on a wordpress website with a plugin [closed]