You should include your includes/authentication.php
in your myplugin.php
like that:
include('includes/authentication.php');
You can use all the WordPress-Functions there.
If there are any specific functions that don’t work for you, please list them, and show us how you included your includes/authentication.php
.
Related Posts:
- Trying to avoid including wp-load.php
- Open Post Thumbnail in New Child Theme File in WordPress
- wp-load.php redeclares classes
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Where the Nickname is being used in WordPress
- WordPress plugin from own server
- How to avoid plugin name conflicts from the upgrade notifier?
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- Add content to /wp-admin/plugin-install.php admin screens
- How do I only load a plugin js on it’s settings pages?
- Need a function for changing saved post_date or post_date_gmt to relative time in wordpress
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- Activate Plugin which is in subfolder?
- Adding dynamic section to WordPress
- Use functionality of 2 wordpress plugins
- Autoload via composer in plugin interference
- Yoast SEO blocking/re-initialising longer running process
- Add Fields with Sub-Fields to WP Job Manager
- template_redirect not being called when using ajax
- Can WordPress plugins “Talk to each other”?
- How do I store information in a dynamic block in WordPress?
- Is there a way to alter the order in which the plugins appear in the page?
- How to correctly detect accessing wp-content/uploads?
- How to create custom embed block in gutenberg wordpress
- Plugin exceeds memory limit
- Find the URL of the current plugin directory
- How can sanitize $_FILES[‘haq_slider’] field
- How to trigger $_GET request within admin plugin page?
- Plugin Paths Issue
- How to generate video out of images via WordPress plugin
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- Woocommerce plugin for minimum order and add-to-card-step
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Change plugin main file name (that is currently in the repo)
- Get plugin option in another PHP file
- Using a post-signup hook to get user details
- How to apply a patch via plugin?
- wp_remote_get() returns 403 while file_get_contents() does not
- How to set add question capability for author role in wp pro quiz plugin
- Unable to delete custom post types, confusion around capabilities
- Getting wp.me shortlink for wordpress custom post type
- where is the main file in this plugin?
- Remove .htaccess portion upon plugin deactivation?
- Insert Array in Plugin Database
- First plugin, problem with get_pages
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- Translation issue with global variables
- How programatically cause uploads folder to be created?
- what is the point of telling add_filter how many parameters you want passed to the function?
- How to add category and subcategory in WordPress custom code?
- Structuring function with registration_errors hook
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- using wp_cache in plugin
- Should I use the action in the plugin’s main file?
- wp_query ‘s’ parameter does not work with WC_AJAX
- Monitor all the queriers executed by my website
- Dotenv file in custom plugin
- Allow a particular user to access a particular plugin?
- wordpress plugin add page when activate
- Add style to body based on url
- Getting the same post on my related post
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- How to create a plugin with automatic update?
- How to remove WordPress Default Comment? not Facebook
- How to use Datatable with Ajax when creating plugin on WordPress?
- Loading plugin script only on required page?
- Create survey that redirects to sidebar menu customized to answers
- Uploading images to custom table
- Changing author slug for a custom role without using plugin
- plugin operation launch every time i click on page
- Plugin Version List not Shown
- WP options plugin setting not saving the selected checkboxes
- How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?
- How can I customize Easy Appointment plugin?
- How to change meta data(title, description) for current post?
- how to add custom css at top above all css file for specific url
- Provide http service by wordpress plugin
- Coming soon pages with rest of site in maintenance mode
- insert multiple entries in database using a loop issue
- create web service for android app using wordpress website
- Web Application Framework Compatibility with WP Plugin
- Plugin Works, but Widget Doesn’t
- Retrieve data from multiple WordPress sites using PHP script
- Plugin loaded, but not running
- Merge custom plugins in one folder
- Execute certain function on GET request
- Filter EVERY category link with my plugin
- Add custom fields in the new and edit the site forms without touching the WP core
- Extend WordPress REST API with Scheme Pro Plugin
- How to submit the custom form data in database in WordPress without plugin?
- map urls to plugins
- Embed php code in custom field of a plugin [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- WP Elementor Pro causing crtical failure on website
- Function not being called on form submit, only blank admin-post.php page
- How to give specific class name to category in wordpress with code snippets
- Display Any Field fromAdmin Panel in Frontend via Shortcode?