Include this in your theme functions,
<?php
$includes_path="the root folder you want to call";
require_once $includes_path . 'the_class_you_are_calling.php';
?>
Also make sure you have the privileges access… I know it’s dummy but I’ve been there done that…
Related Posts:
- Can I change a variable in a content part while calling it?
- functions.php is being included twice, creating PHP fatal errors
- Include a file that has a function in it
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Before & After Content – After Content directly below Before Content when using require_once
- PHP get_category() function redeclared
- php “use” not working in template [closed]
- Shortcode to include PHP file, pass various parameters to include?
- Mega Menu Walker
- How to add a class to the attachment images
- How to call a function only once (global variable scope)
- Multiple is_page() in page.php
- Fatal error: Call to undefined function plugin_dir_path()
- Switching wp_get_sites to get_sites
- load/require specific php files for specific pages/templates/post types
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How to correct schedule my event weekly with wp_schedule_event()
- ob_get_clean returns empty string, ob_get_flush outputs string
- One button to change all settings in theme customizer?
- Add custom image sizes to media uploader
- Execute a shortcode when clicking on a image
- How can update custom meta for all posts
- Is $hook a global variable in WordPress
- Include Class File in WordPress
- nowplaying.include.php Will Not Display Results
- Change logo based on incoming domain
- wrong php date()?
- Include a php file from functions.php only to homepage
- How do I fetch all comments per post via WP REST API?
- Shortcode content output but not in correct place
- How to restrict page access to logged-in users?
- How do I display a user’s previous orders as a select box option on a product?
- Handling Body class based on Template
- Remove meta description on certain pages
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Image media upload metabox
- How to combine wordpress_logged_in cookies in one cookie?
- Two Different Links for Same Product – WooCommerce [closed]
- Automatically adding new post categories to menu
- Get post id in a function when edit/add a post
- get author_name from queried post
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Pass php dynamic variable to shortcode
- Limit 1 global comment per minute
- Modify custom field input data before creating a new post
- Query Pages and post excerpts dynamically
- Is there a way to conditionally check whether a WordPress post title is empty?
- Use WordPress function in php file
- Get my site session in wordpress?
- is_user_logged_in() not working in AJAX validation call
- Register a menu – Error Header
- Shortcode to find and replace URL
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- How to create a field in customize and show that in header.php?
- Set site title & tagline with wp.config or function.php
- Shortcode to embed Edit Account form not working
- How to make jquery count down timer function manually editable
- Hierarchical taxonomy list with modificated term links
- Add value to new attribute inside WordPress menu items
- Please show me how to use an if/else statement in combination with wp_enqueue
- iframe not showing in content on blog page
- Get user custom field value on function.php
- entire JS folder not loading in a WP theme
- Get the name of menu item with wp_nav_menu
- Else/If Statement to Display Photo Descriptions
- Count foreach and display in menu php
- PHP Output also in Child theme, but different
- Dynamically Generate Functions and Hooks
- Strip from or something better?
- Display additional page templates and a sidebar on plugin activation
- Delete images from media library when user deletes an image from ACF Gallery
- Reject all malicious URL requests functions.php
- posts_per_page displays only 2 posts instead of 4 posts
- Notice: Undefined variable
- How to override WooCommerce Order Item Meta with data from Cart?
- Taxonomy Child Term, Counter is staying on 0
- Access to “My Site” is missing from the admin bar
- How to redirect (301) trashed post to it’s parent taxonomy TERM ARCHIVE instead of 404 page
- How to call WordPress PHP file using external js file
- Need help with PHP functions
- Using get_theme_mod with checkbox to display content
- use system script advertising in wordpress multisite
- WordPress styling recent post
- Styling admin page rows in order of importance (checkboxes)
- Insert wordpress tags below posts via functions.php
- Break a WordPress function to run in patches and re-continue
- Pagenav Not appearing on custom Template
- Highlight posts currently being edited on multiple editor site?
- My title is showing after the shortcode
- Load a Header in wordpress
- Trouble figuring out how to get my button to submit comment
- Adding multiple conditional tags in a function?
- How do I change the Go To Categories link in the term_updated_messages
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- Add multiple HTML attributes to an Elementor button
- Automatically change insurance quantity based on cart total [closed]
- /page/2/ redirect to 404
- How to pass value to add_filter wpcf7_form_tag from another function?
- hiddenQuestions.find is not a function