I believe plugins are loaded before the theme (see here “plugins_loaded” vs “setup_theme”) so the error is occurring because Helper has not loaded yet.
One thing you can try is to create a child theme and add the class override there (via functions.php).
You can also provide your override after the theme has loaded by hooking into “after_theme_setup” or “init”. There are more details in this post here: How to override a theme function (within a class) using a plugin
Related Posts:
- Fatal error: Call to undefined function plugin_dir_path()
- How to get the registered sidebar’s name by its id?
- Dynamic URL to reference custom PHP files
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- One button to change all settings in theme customizer?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Design view breaking on Pages
- Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- Using wp_get_image_editor in a standalone script
- New Plugin Review
- How the functions in WP are called in tags
- Making Quote Plugin more efficient
- How to access function from outside of a class within this class in WP plugin?
- Add a Second Menu to a theme that only support 1 menu
- PHP can I add line numbers to file_get_contents()
- Can’t load WP function into external function
- Set WordPress Default Template
- Adding Default Settings to Theme My Login plugin
- Swapping wp_dropdown_categories function with wp_category_checklist
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How to access global variable $menu inside a class function
- WordPress add post format support not working
- How can I remove a function that has been added to wordpress with add_filter?
- what is the best practice to add new field to an api route
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- How to call plugin function per site in a multisite?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- WordPress Custom field Colors
- How do I link a button I created in theme customizer to a function?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- How to use html inside a functions.php code?
- Plugin Generate Unexpected output during activation
- Using data sent via AJAX in multiple functions on a WP plugin
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- get_template_directory adding FTP root folders in urls
- How to add the sidebar to all the pages except the home page? [closed]
- Custom meta box values are not getting saved for my custom post type
- how to save checkbox data for custom setting?
- blank white page when post/update/change option etc
- Call to undefined function error in plugin
- Randomize Color Scheme Selection in Theme
- Execute Jquery when a specific page in my plugin is loading
- Displaying Slider in Front Page (home) using Customizr Theme
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- call a string/function from database
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- send popup after wp_redirect()
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Using ACF Relationship field to set post type to draft or published status
- How to change basename url for wp-admin?
- How to Send Pingbacks for all Posts in WordPress?
- Reliable way to add nonce to HTTP Header in WordPress?
- Only the first image uploads
- remove_action from parent theme using child theme functions.php
- Add Pre-Defined Value to Click Counter in WordPress
- File from parent theme imported to child theme doesn’t work – any ideas?
- Illegal string offset checkbox
- How to use data URL in WordPress?
- ssl redirect function is not working
- Custom plugin: how do I call a PHP file if settings option is set to true?
- How can i avoid duplicate same post in wp?
- Display a custom name when the user has no name settle in his account
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- Enqueue sripts and styles only if function is called
- post_exists stops working in a scheduled event
- how to use 2 index.php file One for mobile and one for desktop
- Taxonomy Child Term, Counter is staying on 0
- Menu to the right of screen on desktop using Bootstrap 4
- PHP get_category() function redeclared
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Permission error on plugin save
- Trouble using wordpress functions in a pop-up modal form
- Issues separating my Plugin pages into different files
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- display php code in header using wp_head()
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- How do I change the Go To Categories link in the term_updated_messages
- WP Custom tables query
- a problem in class in class-wp-hook.php
- How to add SVG icon above product tab title
- WordPress does not load page.php, return 404.php
- How can I apply_filters from inside a function?
- Skt full width basic slideshow problem
- How to show/hide php table rows based on the content of custom fields
- Scheduling an event inside plugin class is not working
- Class property seems to lose scope, attached to save_post action?
- exclude custom post type from running a function
- WordPress – Get Posts with Category data
- Call to “admin_notices” hook from a static method
- How to Create custom block for displaying information in content section which act like shortcode
- How to Change Site Elements based on referring URL
- WordPress Query Crashes Browser
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?