Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring base FQCN used in getFullyQualifiedClassName() #34

Open
slaFFik opened this issue Dec 17, 2023 · 0 comments
Open

Allow configuring base FQCN used in getFullyQualifiedClassName() #34

slaFFik opened this issue Dec 17, 2023 · 0 comments

Comments

@slaFFik
Copy link
Member

slaFFik commented Dec 17, 2023

Right now WPForms is hardcoded:

// Fix WPForms.
// Remove _plugin for main plugin class, which is usually Plugin.
$fqcn = str_replace( [ 'wp_forms', '_plugin' ], [ 'wpforms', '' ], $fqcn );

But in other products (like WPAuth) I will need to do the same thing - and currently, there is no way to configure that.

@slaFFik slaFFik changed the title Allow configuring base FQCN Allow configuring base FQCN used in getFullyQualifiedClassName() Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant