If you just need that class included, and your script is located in the plugin directory, like /wp-content/plugins/pluginName/script.php
, then you can do:
require realpath('../../../wp-includes/class-phpass.php');
Related Posts:
- Serving precompressed content with Brotli on Apache
- How can I avoid code duplication for a blog with lots of source code?
- How to rename wp-includes folder?
- What’s the correct way to include files in WordPress TwentyTen theme with it’s own jquery scripts and css?
- Get current user data from external PHP page
- External system integration with wordpress
- Why does get_template_part() break variables?
- How to pass variables with get_template_part?
- Problems Including File
- How to include core files into plugin
- How to check if txt file exists inside template folder?
- What’s the best way to ‘include’ a file in WordPress?
- locate_template function – File not getting included
- Can not include file from plugin into theme
- Include tags from array, ignore the rest in get_the_tags
- PHP files included within functions.php don’t work from admin area
- Wp Enviroment problem with included file
- Having trouble linking to file using relative path
- How can I include an external file in a post or page?
- Including php file in directory above WordPress installation
- add_feed failed to open stream
- Load content From Include File within plugin
- including Zend Gdata library path error
- I’m including a html file in my plugin, but it can’t find its css or js files
- What about “inc” (include) files and Child Theming? Is it possible?
- Make changes in /includes/http.php update safe
- Need to override file included in parent theme
- Class works in Admin, not found on Front End
- if statement parent page for child pages
- Theme parts path location dump
- add_action outside a plugin
- Include paths and functions for external scripts
- Add page as static html into another page
- Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin
- class not declared in scope – even though .h was included
- “Multiple definition”, “first defined here” errors
- Error “Unterminated conditional directive” in cross-referencing headers
- “Fatal error: Cannot redeclare function”
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- What’s the difference between get_home_path() and ABSPATH?
- theme path in javascript file
- Order by & include array by specific post ids
- Show current navigation path from menu
- load/require specific php files for specific pages/templates/post types
- Display posts for a single post format
- How can I include JavaScript that use jQuery on admin side
- ob_get_clean returns empty string, ob_get_flush outputs string
- Include files for a plugin not including
- Adding rich text editor to my plugin
- Include Javascript as Plain (No file inclusion)
- Programmatically add a custom page/path/url/route to WordPress
- Remove ‘wp-content/themes/themename/’ from Image path
- integrating external php library into wordpress- the right way
- Change path of the page’s template
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- Should I use include or load_template for including shortcodes, plugins and so on?
- Looking for a way to include/embed text from a file on a page so that the short codes are processed
- functions.php is being included twice, creating PHP fatal errors
- How to display / include a specific jpg on a page
- Retrieving a path when dealing with composer packages
- How can i have a custom post type with more slugs for each post?
- Use of Templates in a Plugin
- Automatically include all php files in a child theme directory
- Include comments form in plugin page
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- PHP include is only working in certain places in my custom WP theme
- What is the proper way to include a PHP framework into my theme?
- Can I have an additional functions.php file in WordPress?
- Slashes stripped in ACF
- Include file in plugin file
- What’s the best way to include PHP code in pages?
- confused about wp_list_pages() function – how to display selected top pages with all their subpages
- php – Plugin/theme relative PATH/URI
- Trying to include files in plugin isn’t working
- Three step order form, how to go to next step
- Custom metabox not working
- How and when to include shortcode source files
- Create a Custom Path to Archive
- Displaying page content from plugin, inside exising empty WP page
- get_template_part for template in subdirectory not working
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- Before & After Content – After Content directly below Before Content when using require_once
- ‘posts’ table should not store the absolute image path
- Multiple Taxonomy post query with exclusion
- How to change img src in home-made theme, using WordPress` live customizer?
- Including admin-options.php file in Child Themes
- Unexpected plugin_dir_path Output
- How to write wordpress plugins faster to load?
- Push Shortcode parameter to template
- Domain mapping breaks some plugin scripts and css
- All files unattached in Media Library
- Pages included in another page and duplicate content issues for SEO
- Absolute path in WordPress Network site
- Want to include ad code after related post
- Including a PHP file via a function that is part of a plugin?
- strange parse error when including a loop template within another template
- After Migration, Warning: include_once() errors on all pages
- Shortcode return is printing a 1 afterward
- Shortcode to include PHP file, pass various parameters to include?
- Display file contents within Plugin