Skip to content

Instantly share code, notes, and snippets.

@sunnyratilal
Created April 4, 2013 09:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save sunnyratilal/5308969 to your computer and use it in GitHub Desktop.
Save sunnyratilal/5308969 to your computer and use it in GitHub Desktop.
Example Easy Digital Downloads Function
<?php
/**
* Example function description
*
* @since {Next EDD Version}
* @param {array, string, int, objext} {$variable_name} {Short description}
* @return {array, string, int, mixed, object} {$variable_name} {Short description}
* {@internal Any To-Dos etc.}
*/
function edd_example_function( $param1, $param2 ) {
if ( $this ) {
do( that() );
}
return EDD();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment