I’m not sure why this isn’t working for you.
I usually set the plugin path constant using dirname(FILE)
You could try:
define('MR_PLUGIN_PATH', dirname(__FILE__));
//echo MR_PLUGIN_PATH;
include_once(MR_PLUGIN_PATH.'/phprets.php');
Also:
Are you sure phprets.php exists. You say you have phrets.php (missing the p)
Related Posts:
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- 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]
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Why does including a file in theme’s functions.php not work?
- Include files for a plugin not including
- Adding rich text editor to my plugin
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Creating plugin using simple_html_dom parser?
- Use of Templates in a Plugin
- Include comments form in plugin page
- WP Plugins – Use includes to display page content
- Use $variable from file1.php in file2.php (different file paths)
- Trying to include files in plugin isn’t working
- Displaying page content from plugin, inside exising empty WP page
- FPDF for creating pdf diplomas
- How to write wordpress plugins faster to load?
- show Visual form builder in the front end
- Include paths and functions for external scripts
- Including a PHP file via a function that is part of a plugin?
- Shortcode return is printing a 1 afterward
- White Screen When Includding A Folder With PHP Files
- php include returns 1 as output with other outputs [closed]
- Display file contents within Plugin
- How to maintain W3C standards compliance of a theme
- Load plugin on specific page only
- Does a plugin’s “main” file need to be named the same as the folder containing it?
- What causes the “Are you sure you want to do this?” error with plugins?
- enqueue script only if it is not already enqueue
- Display (and manage) webcam images?
- Overwrite textdomain of plugins by default – Lost Translation
- jQuery plugin only in one page/post
- Google Analytics post views in WordPress? [closed]
- scheduled event not getting executed
- How can I limit functionality in one version of a plugin?
- Any way to use a custom Parameter for youtube embed without using an iframe?
- Hook (upgrader_process_complete) running moment
- How do I add a template to a theme using a plugin?
- Can’t see login page after migration
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Debugging Technique Question re: functions.php
- Custom Taxonomy Tag Search
- Advanced Custom Fields
- Retrieving plugin options value saved through setting
- An issue with SEO Ultimate
- How do I modify the position of a plugin?
- how to give a user a role?
- Trouble with editing template for “List category posts” plugin
- Upgraded to latest version – 3.0.3 and Now I get a “sufficient permissions to access this page” error
- Arrays not working in my add_options_page
- Replace default og:image tag YOAST
- Fromcraft Plugin On click submit button [closed]
- A include_template Question
- flush_rewrite_rules() not working with update_option_{$option}
- PHP if statement with German umlauts [closed]
- How to ignore extra whitespaces in translation functions like _e?
- Can backlinks to my site increase my chances of plugin rejection
- Hide a certain category name from Related Posts
- Price comparison table based on Custom Post Type?
- wp_logout_url($redirect); is not working in wordpress
- How do I determine if the user who registered is not spam?
- display unique post per category
- How to display a widget on a page with no theme?
- Prevent plug-in scripts on a specific template?
- Plugin to send messages to members/lists but not full-blown newsletters
- I’m looking for a visual composer / builder plugin that supports RTL
- How i can remove Working Functionality of my header & footer plugin from backend files but in front end plugin need to show that plugin activate
- WoCommerce Cart is not showing pricing
- Plugin or ways to limit number of users logging in the website,
- WP Ajax DB issues
- How to capture hidden values with Gravity Forms
- Hide response returned from WordPress REST API call
- Paid Membership Pro displaying a user name in PHP
- Customize plugin’s output: filters or setters: looking for an advice
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Make another copy of a plugin and install it
- WordPress drop domain alias
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- WP Plugin CSS not being applied to page
- In the WordPress API is there a way to set the width of the post/page container
- Unable to sync woocommerce variations
- Plugin does not create a custom table upon activation
- Automatic updates of plugins and themes outside of wordpress.org
- Plugin hook breaks new WP 4.0 media library grid view?
- How to get site homepage from plugin?
- Contact Form loaded with Ajax
- Link Forms on WordPress
- 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
- 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?
- Why does theme need woocommerce to show images / content on front page?
- wordpress Ajax success doesn’t return the value
- How to add custom html to the Media > Attachment Details modal?
- Unable to access WPadmin, website down