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 | |
namespace Diveshare\DiveshareBundle\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Diveshare\DiveshareBundle\Test\Autorunner; | |
class AutotestCommand extends \Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand | |
{ |
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 | |
add_action('woocommerce_order_actions', 'my_woocommerce_order_actions', 10, 1); | |
function my_woocommerce_order_actions($actions) { | |
$actions['my_action'] = "Do my action"; | |
return $actions; | |
} | |
add_action('woocommerce_order_action_my_action', 'do_my_action', 10, 1); | |
function do_my_action($order) { | |
// Do something here with the WooCommerce $order object |