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_Add_On::uninstall_real()

Actually performs the uninstall


Return Return

(string|WP_Error) Success message or an error object.


Top ↑

Source Source

File: includes/models/model.llms.add-on.php

		$title = $this->get( 'title' );

		if ( ! $this->is_installed() ) {
			// Translators: %s = Add-on title.
			return new WP_Error( 'not-installed', sprintf( __( '%s is not installed.', 'lifterlms' ), $title ) );
		}

		if ( $this->is_active() ) {
			// Translators: %s = Add-on title.
			return new WP_Error( 'uninstall-active', sprintf( __( '%s is active and cannot be uninstalled.', 'lifterlms' ), $title ) );
		}

		return $this->uninstall_real();

	}

	/**
	 * Actually performs the uninstall
	 *
	 * @since 5.1.1
	 *
	 * @return string|WP_Error Success message or an error object.
	 */
	private function uninstall_real() {

		$type = $this->get_type();


Top ↑

Changelog Changelog

Changelog
Version Description
5.1.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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