Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #61026


Ignore:
Timestamp:
04/17/2024 08:46:45 PM (8 months ago)
Author:
sabernhardt
Comment:

I edited the description's formatting and removed the last two parts. Please verify that that is correct :)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61026 – Description

    initial v2  
    1 On /wp-admin/network/sites.php with the usage of hook listed below we can add new states to the page (see attachment).
     1On `/wp-admin/network/sites.php` with the usage of hook listed below we can add new states to the page (see attachment).
    22
    3 1. '' $views = apply_filters( "views_{$this->screen->id}", $views );
    4 '' @ wp-admin/includes/class-wp-list-table.php line 515
    5 2. and ''$site_states = apply_filters( 'display_site_states', $site_states, $_site );'' @ wp-admin/includes/class-wp-ms-sites-list-table.php line 671
     31. `$views = apply_filters( "views_{$this->screen->id}", $views );` \\ @ `wp-admin/includes/class-wp-list-table.php` line 515 and
     42. `$site_states = apply_filters( 'display_site_states', $site_states, $_site );` \\ @ `wp-admin/includes/class-wp-ms-sites-list-table.php` line 671
    65
    7 The issue is that on ''wp-admin/network/site-info.php'' there is no way to add our own states to the core states. There is no filter that grands access to the variable that contains the data which WP uses to render the state fields with. This should be looked at. For it makes zero sense to be able to add new states elsewhere but not on page ''wp-admin/network/site-info.php''.
    8 
    9 
    10 
    11 WP_Site->deleted never gets value of 2
    12 
    13 Request... add action hook to add new page/tab to sites.php
     6The issue is that on `wp-admin/network/site-info.php` there is no way to add our own states to the core states. There is no filter that grants access to the variable that contains the data which WP uses to render the state fields with. This should be looked at. For it makes zero sense to be able to add new states elsewhere but not on page `wp-admin/network/site-info.php`.