Automator_Registration::recipe_type( $type, $details )
Contents
Parameters Parameters
- $type
-
(Required)
- $details
-
(Required)
Return Return
(bool|null)
Source Source
File: src/core/lib/utilities/class-automator-registration.php
public function recipe_type( $type, $details ) { if ( null === $type || ! is_string( $type ) ) { Automator()->error->add_error( 'register_integration', 'ERROR: You are trying to register an integration without passing an integration code.', $this ); return null; } // Register integration if it doesn't already exist if ( ! key_exists( $type, Automator()->get_recipe_types() ) ) { Automator()->set_recipe_type( $type, $details ); } return true; }
Expand full source code Collapse full source code View on Github