Trigger_Process::prepare_entry_args( $args )
Contents
Parameters Parameters
- $args
-
(Required)
Return Return
(mixed|void)
Source Source
File: src/core/lib/recipe-parts/triggers/trait-trigger-process.php
protected function prepare_entry_args( $args ) { $pass_args = array( 'code' => $this->get_trigger_code(), 'meta' => $this->get_trigger_meta(), 'user_id' => $this->get_user_id(), ); if ( null !== $this->get_post_id() && null === $this->get_trigger_to_match() && null === $this->get_recipe_to_match() ) { $pass_args['post_id'] = $this->get_post_id(); } if ( null !== $this->get_trigger_to_match() ) { $pass_args['trigger_to_match'] = $this->get_trigger_to_match(); } if ( null !== $this->get_recipe_to_match() ) { $pass_args['recipe_to_match'] = $this->get_recipe_to_match(); } if ( null !== $this->get_is_signed_in() ) { $pass_args['is_signed_in'] = $this->get_is_signed_in(); } if ( $this->is_ignore_post_id() ) { $pass_args['ignore_post_id'] = $this->is_ignore_post_id(); } $this->set_trigger_args( $pass_args ); return apply_filters( 'automator_trigger_entry_args', $this->get_trigger_args(), $args ); }
Expand full source code Collapse full source code View on Github