Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Engagement_Handler::do_deprecated_creation_filters( array $args, string $type )
Apply deprecated creation filters based on the engagement type.
Parameters Parameters
- $args
-
(array) (Required) Array of creation arguments.
- $type
-
(string) (Required) The engagement type, accepts "achievement" or "certificate".
Return Return
(array)
Source Source
File: includes/class-llms-engagement-handler.php
private static function do_deprecated_creation_filters( $args, $type ) { $hooks = array( 'achievement' => array( 'lifterlms_new_achievement', 'llms_achievement_get_creation_args' ), 'certificate' => array( 'lifterlms_new_page', 'llms_certificate_get_creation_args' ), ); $hook = $hooks[ $type ] ?? null; if ( ! $hook ) { return $args; } return apply_filters_deprecated( $hook[0], array( $args ), '6.0.0', $hook[1] ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |