This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| <?php | |
| /* | |
| * Upload this file to a new folder called: | |
| * /custom/includes/plugin_invoice/template/invoice_task_list.php | |
| * This file will get included instead of the default invoice_task_list.php file | |
| * This file gets the default invoice task list generated HTML content and performs a regex on it | |
| * Useful for some minor task list modifications without editing the entire task list file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Integration layer to communicate with the Envato API. | |
| * | |
| * @see https://build.envato.com/api | |
| * | |
| * @outher Abdullah Sowailem. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set('display_errors',true); | |
| ini_set('error_reporting',E_ALL);; | |
| $clientid = 'XXXXXXXXXXXXXXXXXXX'; | |
| $fields_string = ''; | |
| $errors = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this code does two things: | |
| // 1) sets the 'support_hub' return parameter to the xmlrpc getUser request. In here we can include additional options to display within Support Hub when replying to a bbPress post. Currently we have 'Mark Thread as Resolved' as an option. This option gets passed back to bbPress via XMLRPC when replying to a post from Support Hub, so we can action this. | |
| // 2) a hook for xmlrpc insert post to detect if we're posting a forum thread. This runs the standard bbPress update hooks to ensure all the bbPress meta values are updated correctly after posting a reply. We also look for any custom options (e.g. mark as resolved) and perform actions based on those as well. | |
| // UPDATE: instead of adding this code, try using this bbPress Support plugin: https://github.com/dtbaker/bbPress-Support-Forums it does everything (making threads as resolved, feature voting, etc..) | |
| // this is for SupportHub to operate correctly, passing the envato_codes as a meta key along with user requests. | |
| //apply_f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Visual Composer Extended License Updater | |
| * Server Side Update Script | |
| * Author: dtbaker | |
| * Details: http://dtbaker.net/web-development/visual-composer-plugin-updates-in-3rd-party-themes/ | |
| * | |
| * Upload this script to your website (e.g. yourwebsite.com/vc_update.php) | |
| * Adjust the API key to your own | |
| * Add the other code into your WordPress theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Visual Composer Update script for 3rd party Themes | |
| * Details here: http://dtbaker.net/web-development/visual-composer-plugin-updates-in-3rd-party-themes/ | |
| * Author: dtbaker | |
| * | |
| */ | |
| // ************* CHANGE ME *************** change me to your server side visual composer update URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Exception handling class. | |
| */ | |
| class EnvatoException extends Exception { | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // NOTE: verify-purchase has been deprecated and it's best to use the new /author/sale endpoint as documented on http://build.envato.com/ | |
| // created by Envato user wpdreams https://forums.envato.com/t/verify-purchase-class/3526 | |
| // usage example: | |
| $o = EnvatoApi2::verifyPurchase( $purchase_code ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $customer_import = array( | |
| 'customer_name' => 'Test Customer Import', | |
| 'customer_extra' => array( | |
| 'Extra Key 1' => 'Extra Val 1', | |
| 'Extra Key 2' => 'Extra Val 2', | |
| 'Extra Key 3' => 'Extra Val 3', | |
| ), | |
| 'address' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * name this file 'custom_link.php' and put it into a new folder /includes/plugin_custom_link/ | |
| */ | |
| class module_custom_link extends module_base{ | |
| public function init(){ } | |
| public function get_menu($holding_module=false,$holding_page=false,$type=false){ | |
| $links=array(); |