The plugins are loaded right before theme (yes, I’ve been looking for excuse to use this):

However it is wrong to think about either as point of code execution. For most cases everything should be hooked and executed no earlier than init hook. According to Codex widget registration with register_widget() should be hooked to widget_init.
Because of that order of load doesn’t matter for this case, you will have everything loaded by the time widget needs it in any case.
Related Posts:
- Need to create a Theme demo site that features multiple themes
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Seeking clarification on page request life-cycle
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Code in theme functions.php faster than with a plugin?
- Showing Co-Authors on post page
- Override the filter from plugin in child theme
- Custom Taxonomy Tag Search
- Missing argument 3 for wp_register_sidebar_widget()
- How to Display a Plugin function (content) on frontpage using index.php
- Custom random quote widget breaks when used in multiple sidebars
- Display post lists in 2nd paragraph
- Redirect to another page using contact form 7? [closed]
- Add SideBar/Widgets Just Below the Post
- Shortcode Attributes to Return different $_POST
- Woocommerce singe product custom gallery output works just on the first slide
- strange shortcode error: does shortcodes requires any dependency?
- All custom widgets are not showing in widget area at the same time
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Widget for specific category
- My widget won’t update its values when save is clicked
- Removing the custom_image_header from wp_head
- Widgets are not displaying in the admin panel
- How would I get the new plugin version on this function?
- RSS Feed on WordPress showing code (hypertext) in articles titles
- Unpublished Pages Failing To Appear On Custom Path
- Submitting form to PHP
- Conditional Homepage for logged in user
- How to wrap image tag into div for post only?
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- Cannot access variables within a widget
- twitter widget loads properly in all themes except my own theme?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Trying to output a “Most visited blogs” list in wordpress multisite
- How do I use wp_editor() in widget form?
- How to create an option page for this simple plugin
- How to reorder and display a feed to be chronological?
- What is @Action in WordPress?
- WordPress premium theme development [duplicate]
- the_tags : can we insert a class
- Best practice for including plugin output in a template without using shortcode?
- WordPress checkbox and Illegal string offset
- Add Shortcode tag in Widget/Sidebar
- Undefined index: action plugin problem
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- How to create wordpress widget that is fixed position on the home page
- Adding class to last list item? Not WP generated
- I changed .live() to .on() but change is not reflected on the server
- How can I fetch data from another website to my wordpress website with mysql database
- how to change wp-admin url using function file
- Show different website layout if no sidebar added
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- Expected ‘add_filter’ (T_STRING)
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- Theme Functions run a function upon activation or preview
- Extend a plugin to include a widget option
- Adding a pagenavi to function for displaying bookmarks
- What is the most efficient way of adding additional functionaliy for admin only
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Seperate plugin and theme files
- Table of contents (TOC) plugin is not showing header tag
- Create category for each user
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Cannot pass value variable to WP AJAX functions
- Sharing varible between two add_actions
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- post id or permalink auto-incrementing number and reset everyday
- Override filter variable not working
- Get a Taxonomy values in an array
- How to display widget in front end?
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- WordPress environment not loading properly
- Using Widget Logic to place menu on multiple pages?
- Place content inside the Post Loop
- How to replace native comment_count with Comments Evolved aggregate count
- Follow author on muti-user WordPress site
- Hook into install email
- wordpress Shortocode running twice?
- Is there any wordpress function to update a random post every 10 minutes?
- Calling an custom field from theme option at the frontend
- pluggable function in theme, to be overridden by plugin
- Calling a function from a link in WordPress
- Saving an array to get_options
- Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar
- Showing author box on post detail page
- add query string to all pages after user logged in
- Simple WordPress function / plugin to redirect a site
- Remove base from the custom post type URL [duplicate]
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- How to create post comparison in wordpress
- Open graph issue on my theme
- Requires PHP version 5.3.0
- Show WooCommerce products based on query parameters on redirect
- How to create new title and its description inside a section in WP Customizer?
- I want to move the one click accesbility button on bottom of my website screen,
- Secure way to add JS Script to WordPress filesystem
- How to access a function declared in child theme’s functions file in a plugin file?
- WordPress child theme widget customization – Eduma