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

The default template is activate only after the notification update. #1

Open
karki-dennis opened this issue Sep 23, 2020 · 8 comments

Comments

@karki-dennis
Copy link

karki-dennis commented Sep 23, 2020

only after I click notification this was created https://prnt.sc/umbspn
Is there a way we could assign a default template initially?

@tomasvanrijsse
Copy link
Owner

It's a while ago that I've made this add-on 😅

I guess we could add a filter so you are able to define a default template. Would that be a suitable solution for you?

@karki-dennis
Copy link
Author

Yea and it works fine till now :) Thank you
I have like 500 forms so its like headache for me to update each one :D
Initially I thought abut writing python script to automate but again I think lets try if there is simple solution.
Yea anything you can help with I just want to assign one default template by simple method.

@karki-dennis
Copy link
Author

Is there any updates :)

@tomasvanrijsse
Copy link
Owner

I havent been working on WordPress sites for a year now, so I've tried to make a solution without checking it.
https://github.com/tomasvanrijsse/gravityforms-email-templates/tree/defaultTemplate

Can you verify if the version on this branch works like you expect it?

@karki-dennis
Copy link
Author

Nothing Happened :(

@tomasvanrijsse
Copy link
Owner

My bad. I forgot to give you the instructions. (They where only visible on the commit description)

configure your default template like this, in your functions.php file

add_filter( 'gform_email_default_template', function( ) {
  return 'basic';
});

@karki-dennis
Copy link
Author

Yea I see that and updated the function but nothing happens.

@tomasvanrijsse
Copy link
Owner

I've no time available to improve this functionality. I also don't have any sites with GravityForms on hands anymore.
If you like you can make a Pull Request and I'd be happy to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants