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


(array) (Required) Array of creation arguments.


(string) (Required) The engagement type, accepts "achievement" or "certificate".

Top ↑

Return Return


Top ↑

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] );


Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.