- Timestamp:
- 04/28/2020 02:28:16 PM (5 years ago)
- File:
- 1 edited
Legend:
- Unmodified
- Added
- Removed
codepress-admin-columns/trunk/classes/ListScreen/Post.php
r2246221 r2293580 22 22 */ 23 23 public function set_manage_value_callback() { 24 add_action( "manage_" . $this->get_post_type() . "_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );24 add_action( "manage_" . $this->get_post_type() . "_posts_custom_column", [ $this, 'manage_value' ], 100, 2 ); 25 25 } 26 26 โฆ โฆ 31 31 require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' ); 32 32 33 return new WP_Posts_List_Table( array( 'screen' => $this->get_screen_id() ));33 return new WP_Posts_List_Table( [ 'screen' => $this->get_screen_id() ] ); 34 34 } 35 35 โฆ โฆ 38 38 */ 39 39 public function get_screen_link() { 40 return add_query_arg( array( 'post_type' => $this->get_post_type() ), parent::get_screen_link() );40 return add_query_arg( [ 'post_type' => $this->get_post_type() ], parent::get_screen_link() ); 41 41 } 42 42
Note: See TracChangeset for help on using the changeset viewer.