Make WordPress Core

Opened 4 years ago

Closed 4 months ago

Last modified 8 weeks ago

#54419 closed enhancement (fixed)

Suggestion to add an action in /wp-admin/import.php page

Reported by: lenasterg's profile lenasterg Owned by: audrasjb's profile audrasjb
Milestone: 6.8 Priority: normal
Severity: minor Version: 5.8.1
Component: Import Keywords: has-patch has-dev-note
Focuses: administration Cc:

Description

Hi.
I think it would be useful if we add an action in /wp-admin/import.php page, much like the those we have on other administration pages ex. https://core.trac.wordpress.org/browser/tags/5.8.1/src/wp-admin/tools.php tools page.

The suggested action is the following

/**
* Fires at the end of the importers Administration screen.
*
*/
do_action( 'after_importers' );

to insert after
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/import.php#L232

Sorry, for not posting it as a patch.

Bests,
Lena

Change History (10)

#1 @SergeyBiryukov
4 years ago

  • Component changed from Administration to Import

This ticket was mentioned in PR #3492 on WordPress/wordpress-develop by @lenasterg.


3 years ago
#2

  • Keywords has-patch added

The patch adds an action in /wp-admin/import.php page much like the one we have on other administration pages ex. tools page in https://core.trac.wordpress.org/browser/trunk/src/wp-admin/tools.php#L93

The patch adds an action in /wp-admin/import.php page much like the one we have on other administration pages ex. tools page in https://core.trac.wordpress.org/browser/trunk/src/wp-admin/tools.php#L93

Trac ticket: https://core.trac.wordpress.org/ticket/54419

This ticket was mentioned in PR #3493 on WordPress/wordpress-develop by @lenasterg.


3 years ago
#3

The patch adds an action at the end of /wp-admin/import.php page much like the one we have on other administration pages ex. tools page in https://core.trac.wordpress.org/browser/trunk/src/wp-admin/tools.php#L93

Trac ticket: [](https://core.trac.wordpress.org/ticket/54419)

This ticket was mentioned in Slack in #core by lenasterg. View the logs.


4 months ago

This ticket was mentioned in PR #8188 on WordPress/wordpress-develop by @audrasjb.


4 months ago
#5

https://core.trac.wordpress.org/ticket/54419

This PR adds an action hook at the end of the import screen, consistently with other admin screens.

Note import_filters action hook name doesn't appear to conflict with existing plugins: https://wpdirectory.net/search/01JJBSRW4CYR37K9E9XFHJHACG

#6 @audrasjb
4 months ago

  • Milestone changed from Awaiting Review to 6.8
  • Owner set to audrasjb
  • Status changed from new to accepted

#7 @audrasjb
4 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 59701:

Import: Add the import_filters action hook to the Import screen.

This changeset introduces the new import_filters action hook at the end of the Import screen, consistently with other admin screens like export.php.

Props audrasjb, lenasterg.
Fixes #54419.
See #19863.

#8 @audrasjb
4 months ago

  • Keywords needs-dev-note added

This should be mentioned in the Misc changes dev note or in the field guide.

#10 @JeffPaul
8 weeks ago

  • Keywords has-dev-note added; needs-dev-note removed

This has now been published as a section in the Miscellaneous developer changes in WordPress 6.8 dev note post.

Note: See TracTickets for help on using tickets.