abstract-post-modifier.php
3 years ago
base-post-action.php
3 years ago
insert-action.php
3 years ago
post-author-property.php
3 years ago
post-comments-property.php
3 years ago
post-content-property.php
3 years ago
post-date-gmt-property.php
3 years ago
post-date-property.php
3 years ago
post-excerpt-property.php
3 years ago
post-id-property.php
3 years ago
post-meta-property.php
3 years ago
post-modifier.php
3 years ago
post-parent-property.php
3 years ago
post-status-property.php
3 years ago
post-terms-property.php
3 years ago
post-thumbnail-property.php
3 years ago
post-title-property.php
3 years ago
post-type-property.php
3 years ago
trash-action.php
3 years ago
update-action.php
3 years ago
abstract-post-modifier.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Methods\Post_Modification; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Actions\Methods\Abstract_Modifier; |
| 8 | use Jet_Form_Builder\Actions\Types\Insert_Post; |
| 9 | |
| 10 | abstract class Abstract_Post_Modifier extends Abstract_Modifier { |
| 11 | |
| 12 | abstract public function is_supported( Insert_Post $action ): bool; |
| 13 | |
| 14 | abstract public function get_id(): string; |
| 15 | |
| 16 | public function before_run( Insert_Post $action ) { |
| 17 | $fields_map = $action->settings['fields_map'] ?? array(); |
| 18 | $request = jet_fb_action_handler()->request_data; |
| 19 | |
| 20 | $this->set_fields_map( $fields_map ); |
| 21 | $this->set_request( $request ); |
| 22 | } |
| 23 | |
| 24 | } |