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
- Include another HTML file in a HTML file
- C++ #include guards
- C++ #include guards
- Inserting a PDF file in LaTeX
- How do I run a file on localhost?
- class not declared in scope – even though .h was included
- Already defined in .obj – no double inclusions
- How do you #include files in java?
- How do I include a JavaScript file in another JavaScript file?
- Random not declared in scope
- “Multiple definition”, “first defined here” errors
- Error “Unterminated conditional directive” in cross-referencing headers
- “Fatal error: Cannot redeclare function”
- What is the difference between a .cpp file and a .h file?
- Difference between require, include, require_once and include_once?
- How to include file in a bash shell script
- cmath vs math.h (And similar c-prefixed vs .h extension headers)
- How to add a default include path for GCC in Linux?
- Compiler error C4430: missing type specifier – int assumed [duplicate]
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- how to get wp-content folder in wordpress?
- get_template_directory_uri pointing to parent theme not child theme
- Passing variables through locate_template
- How to get the path to the current theme?
- What’s the difference between get_home_path() and ABSPATH?
- Is there any way to use get_template_part() with folders?
- theme path in javascript file
- When moving a WP site, why does wp-admin redirect to old site?
- The proper way to include/require PHP files in WordPress
- Symbolic Links on dev box with plugins and stylesheets
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- Should we use get_template_part() in functions files instead of include_once?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Include WP_Query in my own PHP file?
- Order by & include array by specific post ids
- Include a external PHP file into a WordPress Custom Template
- Include PHP file in Content using [shortcode]
- Setting a custom sub-path for blog without using pages?
- Change the path where wordpress plugins are uploaded
- Include files in functions.php
- What is the right way to include a wp-admin file in your theme?
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- Show current navigation path from menu
- How to display a raw HTML page (bypassing WordPress theme, scripts, etc)
- How do I ‘rebuild’ the WordPress Media library after transfer to new host?
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Which method is best to enqueue scripts
- load/require specific php files for specific pages/templates/post types
- How to get WordPress to save upload file beyond web root [closed]
- How to call plugin path in JS?
- Absolute Path (ABSPATH) in WordPress is not working
- Display posts for a single post format
- How can I include JavaScript that use jQuery on admin side
- Why does including a file in theme’s functions.php not work?
- bloginfo(‘stylesheet_directory’) vs. get_stylesheet_directory_uri() and include(‘file.php’) vs. get_template_part()
- Hook filter to change wp_upload_dir() path in multisite
- Sort users in get_users() in custom order
- How to inject custom url path for page ?
- ob_get_clean returns empty string, ob_get_flush outputs string
- passing argument to get_template_part() or a better way to code
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- Include files for a plugin not including
- WordPress “include TEMPLATEPATH” or?
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons