The previous approach was not favourable as it is complex for the users.
User flow:
- User clicks "Add Contest" in the admin menu
- Enters just the contest title
- Clicks "Create Contest"
- WordPress creates a new page with all the content from the template
- This page is accessible in the pages of admin section and can be editable.
- User clicks "Edit it here" and can modify the content using the familiar WordPress block editor
Features to be added:
Reference Documentation:
add_menu_page() - https://developer.wordpress.org/reference/functions/add_menu_page/
submit_button() - https://developer.wordpress.org/reference/functions/submit_button/
sanitize_text_field() - https://developer.wordpress.org/reference/functions/sanitize_text_field/
$wpdb (WordPress Database Class) - https://developer.wordpress.org/reference/classes/wpdb/
The previous approach was not favourable as it is complex for the users.
User flow:
Features to be added:
Reference Documentation:
add_menu_page()- https://developer.wordpress.org/reference/functions/add_menu_page/submit_button()- https://developer.wordpress.org/reference/functions/submit_button/sanitize_text_field()- https://developer.wordpress.org/reference/functions/sanitize_text_field/$wpdb (WordPress Database Class)- https://developer.wordpress.org/reference/classes/wpdb/