Right, so the gist is your code; from your description I thought it was someone else’s code you read for inspiration.
Your woostripe.php file, which loads your gateway class, bails out before loading the gateway class:
// bail on constructor if gateway class isn't loaded!
if (!class_exists('WooStripe_Gateway')) return;
// ...
// why are you attempting to load WooCommerce's classes? Don't!
include_once(dirname(plugin_basename('woocommerce.php')) . 'classese/abstracts/abstract-wc-payment-gateway.php');
// never gets here to load this class, you've already left this function...
include_once(dirname(plugin_basename(__FILE__)) . 'classes/WooStripe_Gateway.php');
Remove the include statement for WooCommerce’s class, that’s WooCommerce’s job not yours. Then move your WooStripe_Gateway include to the top of woocommerce_gateway_init()
before the test to see if it exists. That class cannot exist until it is loaded.
Related Posts:
- How to create a flexible abstraction for WP_Query?
- custom XMLRPC method plus authentication of user & WooCommerce order
- Adding callback function for wp_ajax_ has no effect
- How to add meta boxes to the ‘Add new post’ screen?
- Load WooCommerce templates from my plugin folder first
- In woocommerce who is responsible for sending the receipt email?
- Woocommerce custom emails without header and footer
- Append varible to url or set session
- Plugin for Android Marketplace downloads?
- change add to cart button link [closed]
- WooCommerce currency converter support [closed]
- Woocommerce – looping product images
- How to remove a class [closed]
- woocommerce features to add product along with link
- Plugin sub-menu pages recommended structure and links
- Addition of custom option panel crashes Media Library & Admin Area
- How to extend WooCommerce API to show bookable product availability rules?
- Bootstrap version conflict 3 with 4 for wordpress theme and plugin [closed]
- How to output CMB2 select options from repeated groups select elements?
- How do I update a field of a meta box?
- Display WordPress the_content() via data attributes
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- Constraints in custom tables for plugin development – Yes or No?
- Memberpress Hooks and Activity
- get_option() not returning expected value from plugin
- Where to write custom logs in WordPress
- How developed with version control word press site on shared host? [closed]
- How to stop activation addon if the main plugin is not activated
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Capture mediaelement events
- The plugin does not save data
- How would you compose a complex plugin with lots of routes and functions? [closed]
- Admin – Handle data before creating or updating a post, page or custom post
- Storing data in wordpress database from ajax call from different website
- Get Time Taken By Each Action Hook in WordPress
- How to export post 2 posts WordPress plugin data [closed]
- How to Bind one post object Type with other postobject Type in Advanced Custom field [closed]
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- How to enqueue or include json file to a plugin
- Search and Filter
- wp_filesystem put_contents issue with owner/group
- SSL certificate verify failed
- Why is the temporary upload always 4.1K
- Problem with dinamic add_rewrite_rule()
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Hook into Jetpacks Publicize without using a post type
- get 404 when accessing wp-admin/plugin-install.php
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- How to export post meta with images in wordpress
- Asynchronously render shortcodes in TinyMCE visual editor
- Parse form values before sending to options.php
- My WordPress plugin cannot load my JavaScript file
- javascript datatables in a plugin
- I want to auto populate data in three fields if one drop down is selected
- Best place for if/else piece of code related to custom plugin?
- Is it possible to make sure that only my plugins output is shown to the enduser?
- Get attachments from a post
- Custom login doesn’t work properly
- Password field is empty when using wp_signon();
- How do you assign a UUID to posts/products/comments/reviews?
- Best way to initiate a class in a WP plugin?
- correct way to include a library(and its dependent libraries) in wordpress development
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Issue Tracker from pre exsisting table [closed]
- Plugin widget zindex changes depending on theme [closed]
- How to make a implement queue for scheduling tasks in WordPress?
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Session destroyed on page redirect
- WordPress Plugin [closed]
- Unit testing a plugin with a theme dependency
- Input value from metabox is not found in $_POST after post save
- what is the standard ulr for wordpress plugin development?
- Build a translation correcter plugin
- CMB2 Form Throws No Input File Specified in custom WordPress Plugin
- Customize WooCommerce my account dashboard through plugin
- Secure REST with nonce works only when not logged
- Edit Images From the Front End without Access to WP Admin
- How to remove or add submenu item on plugin activate or deactive
- Precaching WordPress posts with a ServiceWorker
- woocommerce_checkout_order_processed hook executing function twice
- wp.media javascript issue with on select
- parse content from wikipedia article replacing search term with the title of article
- Is there a way to test that readme looks in other language before submitting translation?
- Authorizing a plugin to call Google Analytics v4 API on wp_cron
- What are the specifics of WordPress development I need to know? [closed]
- Insert data from .sql file in wordpress plugin
- WordPress pre_get_posts with combined results of two queries (OR)
- WP_Async_Task doesn’t appear to be running asynchronously
- jQuery for custom plugin not working with Divi theme
- How can I make my metabox appear?
- Ajax call returning 0
- Doubts about the use of metadata and how this can affect performance on WordPress
- How can I replace content in the WP Admin area before an admin page is rendered?
- How can i get the post’s full html source by its ID?
- Plugin directory says that my plugin it’s not availabe in Spanish, but it is
- Fatal error: Uncaught Error: Call to undefined function get_option()
- how to add stylesheet to particular plugin only?