This file contains 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 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 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 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 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 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 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 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 | |
// This example removes the "Customer" and "Group" and "Staff" columns from the main customer page. | |
// It also adds some new columns to the "Customer" and "Job" listing tables. | |
// Upload this file to includes/plugin_custom_table_hooks/custom_table_hooks.php in the UCM folder | |
class module_custom_table_hooks extends module_base{ | |
public function init(){ |
This file contains 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 | |
// upload this file to includes/plugin_custom_dashboard_widgets/custom_dashboard_widgets.php | |
class module_custom_dashboard_widgets extends module_base{ | |
public static function can_i($actions,$name=false,$category=false,$module=false){ | |
if(!$module)$module=__CLASS__; | |
return parent::can_i($actions,$name,$category,$module); | |
} |
This file contains 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 | |
class module_custom_table_hooks extends module_base{ | |
public function init(){ | |
hook_add('table_process_data','module_custom_table_hooks::hook_table_process_data'); | |
} | |
public static function hook_table_process_data($callback, $table_manager){ |