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

Feature Request: Field for custom content before "enter your password prompt" #71

Open
jb510 opened this issue Jan 30, 2023 · 3 comments
Assignees
Labels

Comments

@jb510
Copy link

jb510 commented Jan 30, 2023

It would be nice if we could input some custom content before the "Enter password to confirm:" prompt to explain to users that deleting is irreversible and what kind of information specific to the site will be deleted as a result.

@sanzeeb3
Copy link
Owner

@jb510 - thanks for suggesting a feature.

In case it's on WooCommerce, it can be acheived with the existing hook:

function wpfda_before_content() {
	echo 'Deletion is irreversible!';
}
add_action( 'woocommerce_account_wpf-delete-account_endpoint', 'wpfda_before_content', 5 );

@jb510
Copy link
Author

jb510 commented Feb 24, 2023

TY. Filters for adding unique page content though seem like a very poor solution.

Next we'll get someone offering yet another add-on plugin that uses that hook...

@sanzeeb3
Copy link
Owner

sanzeeb3 commented Feb 24, 2023

@jb510 - it's the same action hook being used to add other contents like password confirmation input box etc. as well. it is just that this extra text isn't available within the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants