Thanks to @the_hobbes and @Charles, I realized that the file Activate.php was not incorporated. By adding require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php';
to my code as shown below, it works correctly:
function activate_adstoolbox_plugin() { require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php'; Inc\Base\Activate::activate(); } register_activation_hook( __FILE__, 'activate_adstoolbox_plugin' );
Oops! Newbie’s error …
Related Posts:
- Plugin Form Submission Best Practice
- PHP error with shortcode handler from a class
- Using a plugin class inside a template
- How to create a flexible abstraction for WP_Query?
- What is the correct way to build a widget using OOP
- How to make method from plugin available in theme?
- Using OOP plugin’s methods throughout the website
- Single Responsibility Principle and WP Classes
- How Can I Add a Filter to Class Instance Only?
- The ideal place for storing persistent PHP objects
- Plugin Architecture/Design Pattern – is better to use a private Observer/Mediator Pattern for plugin subclasses or WP add_action?
- Using a front controller in a WordPress plugin, any suggestions?
- set_sale_price in WooCommerce [closed]
- WordPress Ajax callback function from plugin – OOP
- How do you render_callback for register_block_type to a method in another class?
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Registering and using actions which return results in a Plugin class
- Advice on plugin structure
- Applying OO patterns and principles to plugin development
- Creating a shortcode, but getting tied up with OOP and Classes?
- Plugin Architecture Question: How to avoid using transients
- What is the proper method of using global $post?
- Dynamically creating classes for Widget API
- WordPress class, using add_action to call member function does not work
- Remove an action by extending class and replacing it
- Using OOP inside a Plugin – Is it allowed?
- A question about add_action()
- WordPress plugin development OOP style
- OOP plugin not working
- How to call a function from a shortcode function in an oop plugin
- Bad request 400 using class based files
- functions won’t fire after I converted my code from procedural code to OOP
- Performing ajax request in wordpress
- OOP development and hooks
- How to set a public variable in someone else’s plugin class
- How to Maintain url on form submit
- How is construct function working even when variable is assigned null value?
- Object Oriented plugin, add action and variables
- How do I create Widget within plugin that uses its own class?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Method not receiving attributes from shortcode call, general OOP problems
- What’s the best method for emptying an option created with the Settings API?
- template_include (overriding default plugin templates via current theme)
- Using composer for dependency management in plugindevelopment
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Update exisiting site to 3.5 release candidate
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- add_filter and remove_filter added before and after wp_query
- How to get shortcode to work inside a foreach loop called within a shortcode?
- How can I hook into existing WordPress Bulk actions?
- How to bundle a plugin with a theme, or vice versa
- WordPress Media mime type filter problem 4.0
- creating elements/innerblocks via rangecontrol
- How to check if current static page is frontpage from admin plugin
- Use theme constants in plugin?
- How can I display an error message after post has been saved?
- What method to use to call a REST API?
- What’s the best place to hire a freelance (contract) WordPress developer? [closed]
- Why my database table not created on activation?
- Resizing Images for a Gallery-Plugin?
- Which themes do you use to test compatibilities with your plugin [closed]
- How to debug a unit test for a WordPress plugin, which uses wordpress-test?
- Adding functions to hooks from within a class
- What filters to call to modify the output of the entire page?
- Tried in different ways but sidebar not working?
- How to Create a Simple Related Posts Plugin
- Help With Rewrite_Rules For a Custom Plug-In
- Theme Install using a Custom Repository
- How to add plugin version update option in plugin row action?
- wp_filesystem put_contents issue with owner/group
- error ‘The package could not be installed. No valid plugins were found.’
- Gutenberg table block with Bootstrap .table class
- Translate MCE button text/tooltip in custom plugin
- Can’t change the style of a submit input type? [closed]
- Hide custom post type by user roles
- Odd map_meta_cap $args on post edit — sometimes integer, sometimes string
- How can I create a custom plugin that allows anonymous users to signup without registering?
- WP: Search and replace in DB programmatically
- How to silent ‘Attempting a database schema change is discouraged.’?
- Get images / media attached to a page by page ID
- How to create two custom post types when plugin is activated?
- Plugin architecture to pull from API & create dynamic content on WP site?
- Plugin admin page stylesheet doesn’t work
- Why is $_POST empty when saving custom Meta Box?
- How to remove dynamic-css
- Wp_List_Table is showing as no class found named wp list table
- 403 error rest_’cookie_invalid_nonce’ on API Request
- WordPress Jquery with heade and footer sritp plugin
- I cant add is_admin control to plugin
- Append php file to footer
- Plugin setting page – update_option problem
- WordPress Plugin Update Process
- Registration form Plugin… Email confirmation
- How to display posts list on my plugin page?
- Can’t add images in wordpress to my page – button isn’t clickable
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- I don’t understand how symlinks in plugin work
- Find Any Theme’s page.php File
- multiple record insert creating many duplicate records