Skip to content

is_plugin_active #129

@kevstev01

Description

@kevstev01

I've installed the wordpress-saml plugin (Word Press Version 5.9.1, PHP 7.4) and I'm seeing an error 'function not found : is_plugin_active' when I use the /wp-login.php?normal option (SAML wasn't configured correctly, so I was trying to get to a standard wordpress login).

I fudged the PHP code in saml_custom_login_footer() to get past the error by using :

if (1 || is_plugin_active('wps-hide-login/wps-hide-login.php')) {
	$login_page = str_replace( 'wp-login.php', get_site_option( 'whl_page', 'login' ), $login_page ) . '/';
}

but not being fluent in wordpress development, there's probably a better way...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions