Earn Money with WordPress Plugins

Category: WooCommerce
Earn Money with WordPress Plugins

Promote our email templates in the admin area of your plugin and receive a commission on each sale you make.


Themes Email Affiliate Program

Affiliate Benefits
  • $10 commission rate for each sale through your plugin
  • The more downloads your plugin has, the more you earn
  • Commission is paid monthly
Requirements for a Plugin
  • Related to WooCommerce
  • At least 500 downloads
  • 100% working and maintained
  • Hosted in the WordPress.org repository or GitHub

Ready to Become an Affiliate?

The Themes Email Affiliate Program offers a flexible and unlimited source of income to all WordPress/WooCommerce plugin developers.

Add the submenu page Email Templates into your plugin to display the available email templates and start earning your commission.


How to Add the Email Templates page?

  1. 1

    Create a email-templates.php file with content:

    <?php
    
    if ( ! defined( 'ABSPATH' ) ) {
        exit;
    }
    
    // echo WooCommerce Email Templates
    $templates = file_get_contents('https://s3.amazonaws.com/affiliate.themes.email/woocommerce/templates.html');
    echo $templates;
    ?>
  2. 2

    Place the email-templates.php file next to the main file of your plugin.

  3. 3

    Open the main file of your plugin and paste this snippet of code:

    // check if WET is installed
    function wet_installed_email_templates(){
        // check if the file email-styles.php exist.
        $wet_path =  get_template_directory() . '/woocommerce/emails/email-styles.php';
    
        if(file_exists($wet_path)){
            $installed_email_templates = 0;
        } else {
            $installed_email_templates = 1;
        }
        return $installed_email_templates;
    }
    
    
    // add submenu page email templates
    add_action('admin_menu', 'add_submenu_page_email_templates');
    
    function add_submenu_page_email_templates() {
        // NOTIFICATION BUBBLE: The number of updated Email Templates (0 = hide the bubble)
        $notification_count = wet_installed_email_templates();
    
        add_submenu_page( 
            'woocommerce',
            'Email Templates',
            $notification_count ? sprintf('Email Templates %d', $notification_count) : 'Email Templates',
            'manage_options', 
            'wc-email-templates', 
            'submenu_page_email_templates_callback' 
        ); 
    }
    
    function submenu_page_email_templates_callback() {
        include( 'email-templates.php' );
    }
    
How to Add the Email Templates page
The Email Templates page


Become an Affiliate

Contact us at admin@themes.email


Tutorials

Purchase Email Templates

Each purchase of WET comes with 20 different styles —
and a lifetime of free fresh designs & bug-fix updates.

One purchase for all your future projects.