> EDD Hide Download wordpress plugin resources analysis

EDD Hide Download wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name EDD Hide Download
Version 1.2.7
Author Andrew Munro, Sumobi
Rating 100
Last updated 2015-01-21 02:15:00
Downloads
3483
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
EDD Hide Download plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

EDD Hide Download plugin added 15 bytes of resources to the Home page and 9 bytes of resources to the sample Post page.

EDD Hide Download plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! EDD Hide Download plugin ads no tables to your Wordpress blog database.

This plugin requires Easy Digital Downloads.

It allows you to:

  1. Hide a download so it doesn't appear on the custom post type archive page, anywhere where the [downloads] shortcode is being used, or any custom query on a page template
  2. Prevent direct access to the download. The browser will redirect the user to the site's homepage.
  3. Do a combination of hiding the download and preventing direct access to it

This plugin is extremely useful in the following situations:

  1. You've created a product landing page and inserted a buy now button to your product. Since the landing page contains all the required product information, you can hide the product on the rest of your site and even prevent direct access to it.
  2. You've added a product (eg support package) that shouldn't sit with your other products you have listed. In this case we can simply hide it from appearing with the other products and insert it where we'd like it to appear using the shortcode.

Filter example

Example filter of how you can change the redirect based on the download ID. Copy this function to your child theme's functions.php or custom plugin

function sumobi_custom_edd_hide_download_redirect( $url ) {
    // download has ID of 17
    if ( '17' == get_the_ID() ) {
        $url = 'http://easydigitaldownloads.com'; // redirect user to another external URL
    }

    // download has ID of 15
    if( '15' == get_the_ID() ) {
        $url = get_permalink( '8' ); // redirect to another download which has an ID of 8
    }

    // return our new URL
    return $url;
}
add_filter( 'edd_hide_download_redirect', 'sumobi_custom_edd_hide_download_redirect' );

Example filter of how you can globally change the redirect. Copy this function to your child theme's functions.php or custom plugin

function sumobi_custom_edd_hide_download_redirect_url( $url ) {
    $url = get_permalink( '8' ); // redirect to another download, post or page

    return $url;
}
add_filter( 'edd_hide_download_redirect', 'sumobi_custom_edd_hide_download_redirect' );

Extensions for Easy Digital Downloads

https://easydigitaldownloads.com/extensions/

Tips for Easy Digital Downloads

http://sumobi.com/blog

Stay up to date

Follow me on Twitter http://twitter.com/sumobi_

Become a fan on Facebook http://www.facebook.com/sumobicom

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Simple WP Community Theme screenshot

Simple WP Community Theme

by: nofearinc

66916
0%
Gypsy screenshot

Gypsy

by: hostease

5069
0%