Skip to content

Approach 02: Codeheat Template #373

@Ubayed-Bin-Sufian

Description

@Ubayed-Bin-Sufian

The previous approach was not favourable as it is complex for the users.

User flow:

  1. User clicks "Add Contest" in the admin menu
  2. Enters just the contest title
  3. Clicks "Create Contest"
  4. WordPress creates a new page with all the content from the template
    1. This page is accessible in the pages of admin section and can be editable.
  5. User clicks "Edit it here" and can modify the content using the familiar WordPress block editor

Features to be added:

Reference Documentation:

  1. add_menu_page() - https://developer.wordpress.org/reference/functions/add_menu_page/
  2. submit_button() - https://developer.wordpress.org/reference/functions/submit_button/
  3. sanitize_text_field() - https://developer.wordpress.org/reference/functions/sanitize_text_field/
  4. $wpdb (WordPress Database Class) - https://developer.wordpress.org/reference/classes/wpdb/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions