Home › Forums › Backend Issues (wp-admin) › Adding a field to a Sensei completed quiz › Reply To: Adding a field to a Sensei completed quiz
In order for fields to appear and for there to be a location the page must be either post type of a taxonomy. The URL indicates a custom admin page
edit.php?post_type=course&page=sensei_grading&user=1&quiz_id=4332
This cannot be used for an acf location rule because this page does not call any of the hooks used by ACF for adding custom fields.
This type of page is similar to the page located at options-general.php. ACF cannot be used to add fields to these places.
To do this would require altering the template or function that shows the form on the page and using acf_form() with the “form” argument set to false to insert the ACF form between the form tags of the other existing form. Depending on the plugin it might be possible that they provide some type of hook to do this but not in most cases. You need to contact the developer of the other plugin and find out if they provide any mechanism for modifying the form on that admin page.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz
— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.