Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
test
/
wp-content
/
plugins
/
flexible-shipping
/
src
/
WPDesk
/
FS
/
TableRate
/
Rule
/
SpecialAction
:
SpecialActionFactory.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Class SpecialActionFactory * * @package WPDesk\FS\TableRate\Rule\SpecialAction */ namespace WPDesk\FS\TableRate\Rule\SpecialAction; /** * Can provide special actions. */ class SpecialActionFactory { /** * @return SpecialAction[] */ public function get_special_actions() { $none = new None(); $special_actions = array( $none->get_special_action_id() => $none, ); $special_actions = apply_filters( 'flexible_shipping_special_actions', $special_actions ); return array_filter( $special_actions, function ( $special_action ) { return $special_action instanceof SpecialAction; } ); } }