Affiliates for WooCommerce is a plugin for the e-commerce platform that allows website owners to set up an affiliate program for their online store. The plugin allows affiliates to promote the store and earn a commission on sales made through their unique affiliate links.
* Plugin URI: https://devdiggers.com/woocommerce-extensions/?utm_source=Affiliates for WooCommerce Plugin&utm_medium=Plugins List&utm_campaign=WooCommerce Extensions
* Author: DevDiggers
* Author URI: https://devdiggers.com/
* Version: 1.0.1
* Text Domain: affiliates-for-woocommerce
* Domain Path: /i18n
* WC requires at least: 5.0.0
* WC tested up to: 8.2.2
* WP requires at least: 5.0.0
* WP tested up to: 6.4.1
*
* @package Affiliates for WooCommerce
*/
// ddwcaf: Affiliates for WooCommerce.
use DDWCAffiliates\Includes\DDWCAF_File_Handler;
defined( 'ABSPATH' ) || exit();
if ( ! class_exists( 'DDWCAF_Free_Init' ) ) {
/**
* Init class
*/
class DDWCAF_Free_Init {
/**
* Class constructor
*/
public function __construct() {
add_action( 'plugins_loaded', [ $this, 'ddwcaf_loaded' ] );
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), [ $this, 'ddwcaf_plugin_settings_link' ] );
add_filter( 'plugin_row_meta',[ $this, 'ddwcaf_plugin_row_meta' ], 10, 2 );
}
/**
* Plugin loaded function
*
* @return void
*/
public function ddwcaf_loaded() {
load_plugin_textdomain( 'affiliates-for-woocommerce', false, basename( dirname( __FILE__ ) ) . '/i18n' );
if ( ! class_exists( 'WooCommerce' ) ) {
add_action( 'admin_notices', function () {
?>