This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

EDD Third Party and Blog Link

Description

This plugin requires Easy Digital Downloads. It allows you to add post meta data in Easy Digital Downloads to indicate a third party product as well as a link for more information. Also, it adds a checkbox to indicate if the download is available in the WordPress plugin repository.

Please Note: The plugin doesn’t really do anything on it’s own. It is for advanced users and does nothing on the front-end without writing your own custom code.

Here is what it does do:

  1. Adds a checkbox to the download configuration for you to indicate that a product is from a third party.
  2. Adds another checkbox to indicate that a product is available on the WordPress plugin repository.
  3. Adds a URL field for you to add an external link to a blog or website for product details or more information.
  4. Stores this data in the download product’s post_meta data for you to access and use in your custom code.

Example of how to call the data in your code:

if(get_post_meta( $post_id, 'edd_third_party', true )) {

    echo 'This item is from a third party.' ;

}

if(get_post_meta( $post_id, 'edd_wp_plugin', true )) {

    echo 'This item can be downloaded from WordPress.' ;

}

if(get_post_meta( $post_id, 'edd_bloglink_url', true )) {

    $bloglink = get_post_meta( $post_id, 'edd_bloglink_url', true );
    echo `<a href="' .$bloglink. '" target="_blank">Click for Details </a>`;

}

For more examples and information visit the plugin’s blog page: http://butlerconsulting.com/work/plugins/edd-thirdparty-bloglink/.

Translated Languages Available

I was having some fun after upgrading to the pro version of Poedit so I attempted to add Spanish, German, French and Russian translations. I used Google translate and I’m curious to see how it turned out. Please let me know! If you’d like to contribute a translation or report on a poor translation attempt, please let me know on the support forums.

  • Otherwise, the plugin supports American English by Default… Also supports Canadian, British, Scottish, Irish, Australian and a few others (that’s a joke)

Credits and Special Thanks

Of course a big “shout out” must be given to Matt Mullenweg and the WordPress team for making the entire world possible! Also, of course, kudos to Pippin Williamson for the incredibly awesome Easy Digital Downloads plugin – without which this simple plugin would be useless. Finally, to Andrew Munro, Sumobi who’s plugin EDD Coming Soon provided an easy to follow roadmap for creating mine 🙂 Thanks all!

Screenshots

  • A screenshot of the fields that this plugin adds to the "Download Prices" post metabox.

  • Example usage for code. In this case, if "edd_third_party" returns true, I display the third-party badge. If "edd_wp_plugin" returns true, I add the "FREE Download" text and the WordPress FontAwesome icon to the button.

  • Second example usage for code. In this case, I am also using the free External Products plugin in conjunction with my own. This enables me to have two links, one for the file download and one for the "View Details" link.

Installation

How to istall the plugin:

  1. Upload this plugin to the /wp-content/plugins/ directory and unzip it, or simply upload the zip file within your WordPress installation.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Follow the instructions provided to use the code in your theme or functions.php file.

Or, you can just install it with WordPress by going to Plugins, then click Add New and type in the plugin’s name “EDD Third Party and Blog Link”.

FAQ

How do I add this to my code?

First, see PHP code examples provided under the description, or visit the plugin’s blog page: http://butlerconsulting.com/work/plugins/edd-thirdparty-bloglink/ for further details and examples.

Second, if you really have to ask that question, the plugin is probably not for you. This plugin was designed to expand the dataset of Easy Digital Downloads via custom post meta fields and then accessed through custom code within your theme or functions.php file.

Contributors & Developers

“EDD Third Party and Blog Link” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release August 18th 2014, Nothing to see here. These are not the droids we’re looking for… move along.

1.0.1

  • Tested and updated stable tag for compliance with WordPress 4.0.
  • Added icons for WordPress plugin repository… cool!

1.0.2

  • Tested and updated stable tag for WordPress 4.1.1