@@ 52-56 (lines=5) @@ | ||
49 | */ |
|
50 | public function addIdColumn() |
|
51 | { |
|
52 | foreach (get_taxonomies() as $taxonomy) { |
|
53 | $this->getWpBridge()->addAction("manage_edit-${taxonomy}_columns", [$this, 'addColumnId']); |
|
54 | $this->getWpBridge()->addFilter("manage_${taxonomy}_custom_column", [$this, 'addColumnReturnValue'], 10, 3); |
|
55 | $this->getWpBridge()->addFilter("manage_edit-${taxonomy}_sortable_columns", [$this, 'addColumnId']); |
|
56 | } |
|
57 | ||
58 | foreach (get_post_types() as $ptype) { |
|
59 | $this->getWpBridge()->addAction("manage_edit-${ptype}_columns", [$this, 'addColumnId']); |
|
@@ 58-62 (lines=5) @@ | ||
55 | $this->getWpBridge()->addFilter("manage_edit-${taxonomy}_sortable_columns", [$this, 'addColumnId']); |
|
56 | } |
|
57 | ||
58 | foreach (get_post_types() as $ptype) { |
|
59 | $this->getWpBridge()->addAction("manage_edit-${ptype}_columns", [$this, 'addColumnId']); |
|
60 | $this->getWpBridge()->addFilter("manage_${ptype}_posts_custom_column", [$this, 'addColumnIdValue'], 10, 3); |
|
61 | $this->getWpBridge()->addFilter("manage_edit-${ptype}_sortable_columns", [$this, 'addColumnId']); |
|
62 | } |
|
63 | ||
64 | $this->getWpBridge()->addAction('manage_media_custom_column', [$this, 'addColumnIdValue'], 10, 2); |
|
65 | $this->getWpBridge()->addAction('manage_link_custom_column', [$this, 'addColumnId'], 10, 2); |