Skip to content

Commit 6dd1ac6

Browse files
committed
Press This: Add press_this_init action so plugins can provide their own implementations.
Developed in #8612 Props kraftbj, azaozz, SirLouen, shailu25, mukesh27, poena, desrosj, westonruter. Fixes #53076. git-svn-id: https://develop.svn.wordpress.org/trunk@60990 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 790e52e commit 6dd1ac6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/wp-admin/includes/admin-filters.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,6 @@
172172
// Font management.
173173
add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
174174
add_action( 'admin_print_styles', 'wp_print_font_faces_from_style_variations', 50 );
175+
176+
// Load Press This.
177+
add_action( 'press_this_init', 'wp_load_press_this' );

src/wp-admin/press-this.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@ function wp_load_press_this() {
8484
}
8585
}
8686

87-
wp_load_press_this();
87+
/**
88+
* Loads the Press This plugin.
89+
*
90+
* Via admin-filters.php, the wp_load_press_this() function is hooked into this action.
91+
* Plugins can remove_action and add their own function to load their own Press This functionality.
92+
*
93+
* @since 6.9.0
94+
*/
95+
do_action( 'press_this_init' );

0 commit comments

Comments
 (0)