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

Pre-fill sponsor agreement details from sponsor CPT #1052

Merged
merged 8 commits into from
Oct 9, 2023

Conversation

timiwahalahti
Copy link
Collaborator

We already usually have needed details about sponsor in the sponsor post, because those are used for invoicing. Let's use that data for pre-filling sponsor agreements as well.

To achieve this, a new step was added when creating a sponsorship agreement. New step numbering allows plugging other new steps as well in future if needed.

Fixes #669

Screenshots

CleanShot 2023-09-21 at 01 04 10@2x CleanShot 2023-09-21 at 01 04 25@2x

How to test the changes in this Pull Request:

  1. Open a WordCamp site
  2. Check that you have a sponsor post with all details, create new if needed
  3. Navigate to /wp-admin/admin.php?page=wcdocs
  4. Follow steps and generate pdf

@timiwahalahti timiwahalahti added [Priority] 1 [Component] Docs Generate official docs for WordCamps (visa letters, sponsorship agreements) labels Sep 20, 2023
@iandunn iandunn merged commit 767d854 into WordPress:production Oct 9, 2023
3 checks passed
Copy link
Member

@iandunn iandunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Docs Generate official docs for WordCamps (visa letters, sponsorship agreements)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pre-fill sponsor agreement details from sponsor CPT
2 participants