I believe the problem is you’re using get_stylesheet_directory_uri()
function in an attempt to include a file. This function returns a URL when what you want to do when you need to include a file is provide a path. You could be using instead is get_stylesheet_directory()
Here’s what the output would look like:
// - https://yourwebsite.com/wp-content/themes/my-theme/
$url = get_stylesheet_directory_uri();
// - \www\httpdocs\wp-content\themes\my-theme\
$directory = get_stylesheet_directory();
Related Posts:
- How to change the default registration email ? (plugin and/or non-plugin)
- What’s wrong with Customizing new user notification email by add_filter?
- Function to allow “Anyone can register”?
- How to display all post from the same current usermeta
- Changing starting number of User ID
- User registration add user ID?
- How to set up User email verification after Signup?
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to update the delete user confirmation form?
- Integrating WordPress to my website, while keeping my own authentication system
- Modify custom Users Manage page
- How to Save Different Usermeta Fields According to User Role?
- generate unique number when registering a user
- Adding extra info via GET while registeration in wordpress
- Authenticating to WordPress, using my own authentication two-factor system
- Many users with strange names register, but don’t leave comments. Should I be afraid?
- Set user loggin status?
- How can I add data to a custom column in the Users section of the wordpress backend?
- Unique User Account Number + Displayed Via Shortcode
- Last time a user logged in
- Updating Custom WordPress User Meta Field via REST API
- How can I allow access to multiple users, using the same login, at the same time?
- Creating user relationships
- Add custom user profile field to default WordPress MultiSite registration form
- Send a custom WooCommerce email when custom order change [closed]
- How to change email address used for registrations?
- Make custom user table column filterable
- Add ‘Creator’ User Meta when adding user
- Follow me for WordPress blogs (multi-authors)
- I want to submit multiple users if checkbox is checked
- Change the Labels of Users to Customers in Admin
- user_profile_update_errors hook not executing
- How Can I Move Data From Form 1 To Form 2
- Auto login from custom registration form
- Diffrent User registration form for doctor and patient
- User can not login
- Allow guests to use WP Customizer but disable save button
- Users can only view their content from the front end
- List top 5 authors with most posts
- Multi-site User Sessions
- Add Field to WordPress Register Form
- Problem with custom user meta field
- Customizing Users in Admin Area
- What is correct way to change user’s email?
- Send clear password via mail
- how to make a custom field readonly or disabled by user role?
- How to make wordpress use a non-wordpress users table?
- Custom login and registration forms
- Create Unique ID for user
- Custom Register Link on Backend Form
- Personalized Gallery what are my options?
- how or where wordress collect unlogged user session
- Hook before user is created and make some custom validation
- User with same Mail but a different additional info(like domain)
- How to change the login page without a plugin and not only customizing logo and text around the form?
- No plugin populate user information in to form
- customer specific email attachment
- Send user auto generated password on different email
- mailchimp integration on a custom footer
- Invitation link to a site in multisite network does not work?
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Send default WooCommerce email when switching from custom order status
- How to send email with wp_mail() with from email taken from contact form instead of the host?
- Highlight specific user with custom field value
- Change the functionality of wordpress users module in admin
- Custom user fields validation on registration
- Custom options – register, defaults and delete empty fields (Settings API)
- Custom WP deactivate an email activation link sent to user’s email.
- add unique code required to register
- Custom search by several options send on form not works
- How to create functions that affect only a specific user
- Create users via PHP
- Use wp_login_form function to login with a custom user table?
- Admin new order email customization
- How to get value from wp_usermeta table in database?
- New User Registration email
- how can i inform other users about new user registration? [closed]
- Is it possible assign a secondary existing role to already existing one?
- WordPress isn’t sending welcome email with the password reset
- Redirect all pages to the custom login page except for the registration page
- Woocommerce send custom email receipt based on product attribute
- User Query Multiple Orderby Clause
- Some data of one custom user profile is erased when I update another custom user profile
- Running Gutenberg React in Development Mode
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- What is causing this error? “Warning: Invalid argument”
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Show post page only if the user has bought a specific product
- Adding my own “add to cart button”
- Google font doesn’t show in theme option
- What is the best way to move a single site from one MS installation to another? [duplicate]
- How to load a mycred hook from a plugin?
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Global theme customization multisite
- Floating CTA Image Integration
- Admin menu disable new/delete page
- view and update form only for registered users
- retrieve theme custom settings
- Custom CSS File wont work on second Page
- How to create a shortcode with HTML code in it and custom parameters/