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 | |
/** | |
* Filtering a specific element by setting. | |
* | |
* @param string $value Value to filter. | |
* @param \awsmug\Torro_Forms\DB_Objects\Elements\Element $element Current element object. | |
* | |
* @return string $value Filtered value. | |
*/ | |
function filter_my_value( $value, $element ){ |
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 | |
/** | |
* This class shows how to create an action which is processed directly after sending a form. | |
**/ | |
class Send_To_API extends awsmug\Torro_Forms\Modules\Actions\Action { | |
protected function bootstrap() { | |
$this->slug = 'send-to-api'; | |
$this->title = 'Send to API'; | |
} |
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 | |
$config = array( | |
'transporter' => 'curl', | |
'config_updater' => true, | |
'config_updater_storage' => 'cookie', | |
'twitter' => array( | |
'mode' => '', | |
'authenticator' => 'twitter-oauth1', | |
'authentication_data' => 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 | |
/** | |
* Extend WooCommerce Shipping Classes | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
class WC_Extend_Shippig_Classes { |
NewerOlder