[wp-trac] [WordPress Trac] #59562: edit_form_after_title Hook Not Functional in Block Editor on New Post Page.
WordPress Trac
noreply at wordpress.org
Sat Oct 7 09:31:45 UTC 2023
#59562: edit_form_after_title Hook Not Functional in Block Editor on New Post Page.
----------------------------+-----------------------------
Reporter: danishwebaashi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.3.2
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Hey Team,
We trying to add custom button before Post/Page Title, but it seems not
working with Block Editor UI.
Please check the following bug report -
**Problem**: `edit_form_after_title` Hook Not Functional in Block Editor
on New Post Page
**Version**: WordPress Latest Version of WordPress
**Description**:
**Steps to Reproduce**:
1. Log in to your WordPress dashboard.
2. Go to the "Posts" section.
3. Click on "Add New" to create a new post.
4. Ensure you are using the Block Editor (Gutenberg).
**Expected Behavior**:
The `edit_form_after_title` hook should work correctly in the Block Editor
on the New Post page, just as it does in the Classic Editor.
**Actual Behavior**:
The `edit_form_after_title` hook is not functioning as expected in the
Block Editor on the New Post page. However, it works fine in the Classic
Editor.
**Additional Information**:
- This issue is specific to the Block Editor.
- The `edit_form_after_title` hook is crucial for developers who rely on
it to add custom content or functionality after the post title in the
editor.
- It appears that this hook is not properly integrated or supported in the
Block Editor on the New Post page.
- This issue could be affecting a wide range of WordPress users and
developers who are transitioning to the Block Editor.
**Proposed Solution**:
1. Investigate and identify the root cause of the `edit_form_after_title`
hook not working in the Block Editor on the New Post page.
2. Provide a fix or workaround for this issue.
3. Ensure that the Block Editor fully supports the `edit_form_after_title`
hook, bringing it in line with the Classic Editor's functionality.
4. Test the fix thoroughly to confirm that it resolves the problem without
introducing new issues.
**Impact**:
This bug affects developers and users who rely on the
`edit_form_after_title` hook to extend the WordPress editor's
functionality. Failure to address this issue could lead to a suboptimal
user experience and hinder the adoption of the Block Editor.
**References**:
- [WordPress Plugin Handbook - edit_form_after_title
Hook](https://developer.wordpress.org/reference/hooks/edit_form_after_title/)
- [Gutenberg Handbook - Block Editor
Overview](https://developer.wordpress.org/block-editor/)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59562>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list