autoship_get_account_scheduled_orders​_actions

(src > scheduled-orders.php) Part of the autoship_get_account_scheduled_orders_actions() function. Takes the 1. actions array, 2. status, and 3. context as its parameters. 

$actions = array(
		'Paused'    => array(
			'url'  => autoship_get_scheduled_order_status_change_url( $order_number, 'Paused' ),
      'title'=> __( 'Pause Autoship Order', 'autoship' ),
			'name' => __( 'Pause', 'autoship' ),
		),
		'Active'   => array(
			'url'  => autoship_get_scheduled_order_status_change_url( $order_number, 'Active' ),
      'title'=> __( 'Resume Autoship Order', 'autoship' ),
			'name' => __( 'Resume', 'autoship' ),
		),
		'Failed'   => array(
			'url'  => autoship_get_scheduled_order_status_change_url( $order_number, 'Failed' ),
      'title'=> __( 'Fail Autoship Order', 'autoship' ),
			'name' => __( 'Mark as Failed', 'autoship' ),
		),
		'Pending'   => array(
			'url'  => autoship_get_scheduled_order_status_change_url( $order_number, 'Pending' ),
      'title'=> __( 'Mark Autoship Order as Pending', 'autoship' ),
			'name' => __( 'Mark as Pending', 'autoship' ),
		),
		'Deleted'   => array(
			'url'  => autoship_get_scheduled_order_delete_url( $order_number ),
      'title'=> __( 'Delete Autoship Order', 'autoship' ),
			'name' => __( 'Delete', 'autoship' ),
		),
		'Edit'   => array(
			'url'  => autoship_get_scheduled_order_url( $order_number ),
      'title'=> __( 'Edit / View Autoship Order', 'autoship' ),
			'name' => __( 'Edit', 'autoship' ),
		),
		'View'   => array(
			'url'  => autoship_get_view_scheduled_order_url( $order_number ),
      'title'=> __( 'View Autoship Order', 'autoship' ),
			'name' => __( 'View', 'autoship' ),
		),
	);

apply_filters( 'autoship_get_account_scheduled_orders_actions', $actions, $status, $context );

Still need help? Contact Us Contact Us