Your code uses the conditional:
if( file_exists())
So are you sure you are using the correct path to autoload.php as it will stop if not found and you won’t get the usual error thrown by require?
Personally I’d be expecting to see your vendor dir outside of the wordpress install.
Related Posts:
- Code in functions.php appearing on front-end and dashboard [closed]
- get_footer can’t find any variables set in functions.php
- How do I access variables outside a function [closed]
- clickable title of 2 post on mainpage USING functions.php
- Excerpt – First Sentence & Read More
- wp_get_current_user->user login returns %20 for spaces
- Disable every rss feed except home feed
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- How to test for a class (from a plugin) in functions.php
- If two tags in the middle i need comma
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Child Theme not working – CSS gone
- Show stuff everywhere except single post?
- How to overwrite ‘read more” text for artmag theme
- Call ACF data from functions.php [closed]
- Custom shortcode not being included in content paragraph [duplicate]
- Display post_meta-by_key on product catalogue
- trouble with passing class method data to outside function
- How to assign a div class to a echo function [closed]
- How to display milliseconds instead of seconds using timer_stop function? [closed]
- What are the parameters are used in add_action and filters?
- How can i hide content if not friend in Buddypress? [closed]
- Image width issue in IE [closed]
- new to javascript – using in instead of functions.php, not loading correctly
- How can I add authors to my blog pages?
- Filter to strip unnecessary attributes
- Integrating custom API for post content into Admin interface & Public Website [closed]
- Will my WordPress site become vulnerable after adding this functions which allows more HTML tags for subscribers?
- How to save custom made object in an array in a post meta field
- Get term count on a category page
- 500 error after upgrading from 5.0 to 5.4 and adding empty functions.php
- I want to add the alt attribute to all the photos!
- How do I add schema markup to individual WordPress posts without using plugins?
- syntax error, unexpected ‘$id’ (T_VARIABLE) – where is the issue though? [closed]
- how to handle multiple forloop?
- Add product to cart from functions.php
- Parse error: syntax error, unexpected ‘endforeach’ (T_ENDFOREACH) in [closed]
- Need to use an external variable inside a function
- Owl Carousel and WordPress Integration Via WP_Enqueue
- Woocommerce – Checkout error message
- Add custom css to theme
- Trying to get this function to show below the content
- Removing Facebook contact field from user contact not working
- add variable to actions/functions across different files (woocommerce)
- How do grab the main loop, with conditions, and output via shortcodes
- Why functions metaboxes is causing White Screen in Admin [closed]
- Rename file after title , one small problem
- Help finishing script to export WP user data when form submitted
- is_preview() always return false
- How do I add functionality to images?
- Adding and updating repeating custom field meta data
- How do I make my child theme’s CSS update when I save it?
- replacing words to “…” [closed]
- Display function from functions.php in tag.php
- AJAX values converted to PHP Variables?
- How can I customize the size of the header of my theme?
- reusing code in function and running it with loop
- Sessions in word press [duplicate]
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Custom Post Type Search
- Explode Array from Repeatable Custom Field
- Directing to functions.php the correct way
- Retrieving next_post_link() and previous_post_link() in functions.php
- Replace & with &
- Decimal stripped from metabox number
- Which template file to edit to edit homepage in Mystile [closed]
- Getting full code of wp_list_comments instead of replacing it
- Does functions.php apply to every page?
- Make a PHP file with a function
- Getting error on function.php
- preg_replace specific Text to small latter strtolower [closed]
- Trying to decipher this code which is encoded with HTML Special Characters [closed]
- Remove Disqus JavaScript from homepage
- Which action is triggered before final output?
- Save output of the_content_rss into variable
- Changed functions.php file and now site is blank [closed]
- get_post_class() not working well
- Missing argument 2
- Creating mixture of shortcodes to use in the visual/text editor
- PHP error in shortcode [closed]
- How can I json_encode the output of my function?
- Correct php syntax to add an image in wp functions.php
- Adding function to function.php error 505 [closed]
- How I can show short content with short tag
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- How to get postId from the argument $block when register_block_type()?
- WordPress is adding pagination for all pages not only for blog page, How to remove pagination for all pages except blog/posts page?
- image_size with respect to aspect ratios
- Removing all Category pages with one exception
- PHP Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false
- Add a second stock display [closed]
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- “woocommerce_output_related_products” not working
- Automatically delete posts that aren’t in an array
- Ads Only at one website inside multisite network – code error
- Bulk set Post Title as Tag where Tag is Empty Function
- Different ads on every website on multisite environment
- Is mytheme_post_thumbnails() still necessary?
- Get full slug for a WordPress Post
- Problem with woocommerce recalculating tax on completed orders