You must specify in the roots sage theme composer.json
the runtime where autoload can find the classes.
"autoload": {
"psr-4": {
"App\\": "app/",
"App\\Blocks\\": "app/Blocks/",
"Itineris\\AcfGutenblocks\\": "../../plugins/acf-gutenblocks/src/",
}
}
Don’t forget to run composer dump-autoload
Related Posts:
- Why namespaces are rarely used in WordPress plugins?
- Tips for using WordPress as a CMS? [closed]
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How to get the active theme’s slug?
- Plugin (or Theme) containing its own Plugins?
- Disable author pages for specific users
- Set active theme via URL
- Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint
- Why users disable the WordPress update?
- dequeue not work
- I can’t upload a new wordpress theme from a zipped file
- Translating plugin inside the theme [closed]
- Woocommerce sidebar not loading in theme
- Include Max mega menu Plugin into theme
- How can I list recent posts excerpts?
- How to remove all javascript in a theme wordpress?
- wordpress theme backend admin only
- Deactivate Plugin on Theme Switch
- Plugin Deactivate Self on Activation Errors
- How To Clean The Malware Infected & Hacked WordPress Websites? [duplicate]
- How to get current post user id
- Two (or more) looks, with one set of content
- Re-naming a theme/child theme whilst maintaining updates
- Unable to upload wordpress plugins
- The problem with WordPress Importer
- How to disable CSS rule in Twentythirteen style.css?
- How to read individual user’s directory and display content to that specific user?
- WSOD after upgrading to 3.1
- Linux Permissions and Ownership for WordPress
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Homemade plugin while using Themify Ultra
- Theme/Plugin installation through url on button click
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Does WP delete deprecated plugin/theme files on plugin/theme upgrade?
- How to use get_template part in the plugin?
- How can I use get header from within my plugin?
- Access WP_REST_Server from within plugin namespace
- My single.php page does not show the related data to the post which is clicked
- Basic gallery plugin suggestion [closed]
- How to write “alt” tag in image for wordpress code?
- How to activate a plugin on the activation of a theme?
- WordPress plugin won’t show on some themes
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Theme My Login Shortcode Doesn’t Return Anything
- Include Minit plugin in theme [closed]
- How do I add a plugin dependency to my customized theme?
- Moving FB comments at the end of page
- What is it and from where it is loaded?
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Cannot add edit themes and add plugins after multisite update
- Load CSS files in header of Bones theme?
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- How to display a widget on a page with no theme?
- Remove updates text on plugin or themes list page
- navigation among single posts
- How to prevent plugin, theme installation failures on WordPress?
- WordPress Cache delete on plugin uninstall
- Edit all $wp_scripts at once to $in_footer = false
- Unknown theme modal source
- Ensure WordPress Theme Uninstalls Completely
- Remove a div class with condition
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- Main content of site not showing, but does show when logged in to wp-admin
- Ajax Call not Working in Plugin
- Changing the pointing of assets from old server to new server
- Hide Plugin Custom Post Type Menu Link
- Image path in childs theme
- Hooking into the HTML header container
- Set up new WordPress domain using unclear files
- Genesis Child Theme – Customize body
- Unable to activate themes on localhost
- How to roll back WordPress version or prevent migration from forcing update?
- Multisite converted to Single Site can’t add new plugins or new themes
- why my wordpress dont have toolbar like, plugin, themes and other?
- worldpay class not working with namespace in WordPress
- how to add custom css at top above all css file for specific url
- How to Call Function From Separate WordPress Install on Same Server?
- Reorganization of namespaces
- How to link file or image from wordpress plugin dir to theme by using themes function.php, is it possible?
- Using activated_plugin to run code
- Theme styling for plugins
- Creating themes using the one Plugin (Toolkit)
- Notice: Use of undefined constant Redux_TEXT_DOMAIN – assumed ‘Redux_TEXT_DOMAIN’
- How to install wordpress theme’s plug-ins?
- White screen and can’t activate themes and plugins
- jquery-issue: cannot load the basic jquery
- Template from scratch: Sidebars not showing widget
- custom registration form [duplicate]
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- Activate plugins by a theme’s functions.php?
- Site is setup statically – how to make it content managable?
- do_shortcodes() isn’t working
- Javascript as Jquery Function Call?
- Any plugin/theme available which suits my requirement? [closed]
- Two sites one PC
- How to escape html code?
- Elementor with system colors instead of kit colors [closed]
- Am having issues intergrating this api into my wordpress site, any help please?
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)