$args Type definition. * @return bool Whether it was registered. */ function tflexforms_register_field_type( string $type, array $args ): bool { return TFlexForms\Extensions::register_field_type( $type, $args ); } /** * Registers a form editor panel. See TFlexForms\Extensions::register_settings_panel(). * * @param string $id Panel ID. * @param array $args Panel definition. * @return bool Whether it was registered. */ function tflexforms_register_settings_panel( string $id, array $args ): bool { return TFlexForms\Extensions::register_settings_panel( $id, $args ); } /** * Registers an after-submission action. See TFlexForms\Extensions::register_action(). * * @param string $id Action ID. * @param array $args Action definition. * @return bool Whether it was registered. */ function tflexforms_register_action( string $id, array $args ): bool { return TFlexForms\Extensions::register_action( $id, $args ); } /** * Whether a product feature is available on this site. * * @param string $feature Feature slug. */ function tflexforms_feature_enabled( string $feature ): bool { return TFlexForms\Features::enabled( $feature ); }