Make WordPress Core

Changeset 60990


Ignore:
Timestamp:
10/20/2025 08:01:37 PM (3 months ago)
Author:
westonruter
Message:

Press This: Add press_this_init action so plugins can provide their own implementations.

Developed in https://github.com/WordPress/wordpress-develop/pull/8612

Props kraftbj, azaozz, SirLouen, shailu25, mukesh27, poena, desrosj, westonruter.
Fixes #53076.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin-filters.php

    r59712 r60990  
    173173add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
    174174add_action( 'admin_print_styles', 'wp_print_font_faces_from_style_variations', 50 );
     175
     176// Load Press This.
     177add_action( 'press_this_init', 'wp_load_press_this' );
  • trunk/src/wp-admin/press-this.php

    r57714 r60990  
    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 */
     95do_action( 'press_this_init' );
Note: See TracChangeset for help on using the changeset viewer.