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:
- Tips for using WordPress as a CMS? [closed]
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How to get the active theme’s slug?
- Plugin (or Theme) containing its own Plugins?
- Declare a function before plugin does on the theme functions.php file
- Why users disable the WordPress update?
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- How to use load_plugin_textdomain from within a theme
- I can’t upload a new wordpress theme from a zipped file
- Theme and Plugins sharing common libraries
- Is there a quick way to inject i18n domain into theme/plugin files?
- Get list of sites that uses specific plugin or theme
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Woocommerce sidebar not loading in theme
- Include Max mega menu Plugin into theme
- How can I list recent posts excerpts?
- How to remove all javascript in a theme wordpress?
- wordpress theme backend admin only
- Deactivate Plugin on Theme Switch
- Plugin Deactivate Self on Activation Errors
- How To Clean The Malware Infected & Hacked WordPress Websites? [duplicate]
- How to get current post user id
- Re-naming a theme/child theme whilst maintaining updates
- Unable to upload wordpress plugins
- The problem with WordPress Importer
- How to disable CSS rule in Twentythirteen style.css?
- How to read individual user’s directory and display content to that specific user?
- WSOD after upgrading to 3.1
- Linux Permissions and Ownership for WordPress
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Homemade plugin while using Themify Ultra
- Theme/Plugin installation through url on button click
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Error when using plugin QuickCache with plugin Mobile Smart ? [closed]
- How do I find out what is in control over a certain part of a website?
- How do I combine a theme with a plugin
- Where are theme codes located for WordPress?
- Overwrite category head title
- Create a single website with 3 theme options in wordpress
- using do_shortcode
- How to get menu location in wp_update_nav_menu hook
- Use different single.php file based on condition
- Which wordpress theme is compatible Optima Express theme (real estate inventory) plugin?
- How to Include File from Plugins into Template?
- How to translate WP Blog (search, category etc.)?
- issue in wp_localize_script
- How to remove products-links after the product title using remove_action
- Licensing options for WordPress Plugins
- How I update WordPress theme and plugins
- Overwrite add_image_size defined by theme
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- Detect plugin/theme installation (via upload)
- is there a way to pass a parameter to a add_menu_page function?
- Is there a Image Gallery which will load all my posted Images like twitter’s image grid?
- What is the most efficient way of adding additional functionaliy for admin only
- How do I work with the SlideDeck plug-in?
- Plugin Admin panel checkbox unchecked after submit
- “User need to be logged in in order to make a booking” issue
- Custom Plugin scripts from admin working in frontend
- admin-ajax.php 500 error when new users try to register
- Scrape key check failed. Please try again
- Elementor Sidebar not loading when PRO elements plugin is active
- Disable WordPress Theme Browser and Plugin Browser
- Sold out Label for variable products which are partially sold out
- Create automatic latest version link
- How to Access a file that is inside a plugin’s dir from the theme’s `functions.php` file
- how to display a template.php in a shortcode
- dokan edit functionality
- how to split and upload a theme on wordpress?
- Removing Plugin Action via Theme for Non-admins
- Fatal error: Class ‘RDTheme’ not found
- How to fix blog article view and share #’s?
- When the user entered an unauthorized url redirect to login page
- how to add navigation icons in specific template?
- I want add repository theme folder
- How to make a website with two types of logins , Sellers and buyers?
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- Why all my wordpress sites keeps telling me that everything is up to date at /wp-admin/update-core.php?
- How can I save cookies to members
- Speed issues because of CSS & JavaScript
- Ajax specific template not loading in replacement of index.php
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- Need Help Creating a Multi-Step, Video-Guided Enrollment Site
- How can I modify the colors of my theme for a single section of my site? [closed]
- How to work email subscribe in WordPress?
- how to change location of the plugins & wordpress themes folder
- How to add a plugin in WordPress theme directory?
- Extra Text in Home URL
- WP Customer Reviews call short code on another page [closed]
- Editing a theme
- Self-hosted Plugins & Themes store with auto-updates? [closed]
- Very slow page loads
- WordPress theme is not displaying the correct home page in the Pages section
- How to create new title and its description inside a section in WP Customizer?
- Allowing users to install a predefined bundle of plugins and themes with one action
- WORDPRESS ,Can’t load image of post when sharing post via facebook [closed]
- Error 503 Service Unavailable and wp-json/tdw/save_css