If I understand your question correctly, you are just looking for a way to include PHP files in other PHP files. There are a couple different ways, like include or require (as well as include_once and require_once, although it sounds like you’ll be referencing the same file more than once possibly), both of which basically just bring an external php file in as if it were part of the file you are referencing it from. Here is a description on the differences between the two.
Related Posts:
- Simple form that saves to database
- Plugin development: how to create a form and get custom data?
- Multi step form, custom plugin
- shortcode doesn’t work
- add function to saving change on Options Pages
- How to trigger $_GET request within admin plugin page?
- Custom form action to handle data inside a plugin
- Using a custom plugin to capture input data via Ajax and PHP
- WordPress WPforms customization
- Adapt PHP form action for WordPress?
- Take input from form and pass it to function using a wp-plugin
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Editing a text file from plugin menu
- Use $variable from file1.php in file2.php (different file paths)
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- File Uploader – Upload without adding to Media Library
- Add logo to admin menu in my plugin
- How to redirect to a page after the form is submitted
- Echo out element to another page.
- Trying to include files in plugin isn’t working
- Submitting form to PHP
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Ajax call to php function doesn’t work PHP code
- submit form data to wordpress existing database table using my plugin
- Creating Admin Submenu Page via Class Method
- get/show Last ID
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Saving custom form fields
- How do I convince this button to do something when it is clicked?
- Including a PHP file via a function that is part of a plugin?
- Undefined variable _POST
- How to prevent page load on form submission
- White Screen When Includding A Folder With PHP Files
- how to show selected options drop down menu values in attributes field in after saving post.php
- Display file contents within Plugin
- Contact form 7 select box different value-text than content-text in option [closed]
- wp_dequeue_style not working
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Creating a WordPress admin page without a menu for a plugin
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Insert plugin content before body end
- how to customize hello dolly plugin?
- Adding Custom Fields for Img in Posts
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- How can I ‘reactivate’ .PHP files within a WP plugin that have been marked ‘inactive’?
- How to use wp-ajax in wp-cron
- Deleting images through upload folder, but not deleting from media library
- Sub menu with a URL parameter and access the page
- How to restrict an entire WordPress site to visitors, but the register and login page?
- How to exclude a widget from page 1 of a paginated post
- Using spl_autoloading within WordPress plugin
- TechCrunch WP Asynchronous Tasks plugin still works on v4.7.5? [closed]
- WordPress plugin installation
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- Adding a post shortcode to a page template?
- Dashboard Widget Form
- Why Better WP security plugin returns 418 I’m a Teapot “error”?
- Sort products without thumbnail in WooCommerce shop page
- Create or Update thousands of woocommerce products via PHP
- send_headers don’t work on wordpress multisite
- Update Option Error: Notice: Undefined index
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- Add form fields dynamically on button click
- Custom Post Type Plugin not loading category template and loading 404 instead
- Retrieving a Value from a wp-database
- Custom CSS for plugin form
- WP plugins for building a database?
- Self deactivate plugins after an action occurs
- wp_redirect() not working in Insert PHP plugin in WordPress
- White page on custom plugin option submit
- Set Post Format if find a string in title or post content
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Avoid class name collision when using third party libraries in plugins?
- Image upload and other options in the same plugin settings form?
- How to sanitize uploaded file filename from a plugin?
- Using WP Category Lists Plugin to Dynamically Display Category (PHP)
- wordpress site | All-in-one-cufon IE Issue
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- Set and access global variable
- How to get the element ID from new menu list that added with add_filter()?
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Replacing a plugin function with a custom renamed function doesn’t work
- How to output CMB2 select options from repeated groups select elements?
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WP All Import – Execute Imports
- External RSS feed to WordPress Portfolio
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- How I can internationalize variables within the function _e () __ (), etc?
- Asynchronous request in wordpress
- How to speed up installing plugins and upgrading WordPress
- WordPress portfolio pagination on home page