PluginProbe ʕ •ᴥ•ʔ
Admin Columns / 7.0.13
Admin Columns v7.0.13
7.1.4 7.0.19 2.3.5 2.4 2.4.1 2.4.10 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.6.1 2.5.6.2 2.5.6.3 2.5.6.4 3.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.7 3.1 3.1.1 3.1.10 3.1.2 3.1.3 3.1.5 3.2.3 3.2.7 3.3.1 3.4.1 3.4.6 3.4.8 4.0.1 4.0.3 4.1.6 4.2.2 4.2.5 4.3 4.3.2 4.4.1 4.4.4 4.4.5 4.5.5 4.6.1 4.7.18 4.7.19 4.7.20 4.7.7 7.0.13 7.0.14 7.0.16 trunk 1.0 1.1 1.1.3 1.2 1.2.1 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.5.1 1.4.6 1.4.6.1 1.4.6.2 1.4.6.3 1.4.6.4 1.4.7 1.4.8 1.4.9 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2 2.2.1 2.2.1.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.5.1 2.2.6 2.2.6.1 2.2.6.2 2.2.6.3 2.2.6.4 2.2.7 2.2.8 2.2.8.1 2.2.9 2.3.1 2.3.2 2.3.3
codepress-admin-columns / templates / admin / page / component / deprecated-hook-row.php
codepress-admin-columns / templates / admin / page / component Last commit date
deprecated-hook-row.php 5 months ago
deprecated-hook-row.php
122 lines
1 <?php
2
3 declare(strict_types=1);
4
5 /** @var \AC\Deprecated\Hook $hook */
6 $hook = $this->hook;
7 $callbacks = $hook->get_callbacks();
8 $count = count($callbacks);
9
10 ?>
11
12 <tr>
13 <td class="acu-p-1 acu-px-3 acu-py-3 acu-align-top" colspan="1">
14 <code class="acu-text-[12px]"><?= $hook->get_name() ?></code>
15 </td>
16
17 <td class="acu-p-1 acu-px-3 acu-py-3 acu-align-top acu-leading-5" style="width:100%" colspan="1">
18 <?php
19 if ($hook->has_replacement()) : ?>
20 <?php
21 $translation = $this->type === 'action'
22 ?
23 __(
24 'The action %s is replaced by %s since %s.',
25 'codepress-admin-columns'
26 )
27 :
28 __(
29 'The filter %s is replaced by %s since %s.',
30 'codepress-admin-columns'
31 );
32
33 printf(
34 $translation,
35 '<code class="acu-text-[12px]">' . $hook->get_name() . '</code>',
36 '<code class="acu-text-[12px]">' . $hook->get_replacement() . '</code>',
37 '<strong>' . $hook->get_version() . '</strong>'
38 );
39
40 else:
41
42 echo $this->type === 'action'
43 ? sprintf(
44 __(
45 'The action %s has been removed since %s.',
46 'codepress-admin-columns'
47 ),
48 '<code class="acu-text-[12px]">' . $hook->get_name() . '</code>',
49 '<strong>' . $hook->get_version() . '</strong>'
50 )
51 : sprintf(
52 __(
53 'The filter %s has been removed since %s.',
54 'codepress-admin-columns'
55 ),
56 '<code class="acu-text-[12px]">' . $hook->get_name() . '</code>',
57 '<strong>' . $hook->get_version() . '</strong>'
58 );
59
60 endif; ?>
61
62 <?php
63 if ($count > 0) : ?>
64 <div class="acu-bg-[#F1F5F9] acu-p-3 acu-rounded-lg acu-mt-2">
65 <?php
66
67 $count_string = sprintf(
68 _n(
69 '%d usage',
70 '%d usages',
71 $count,
72 'codepress-admin-columns'
73 ),
74 $count
75 );
76
77 if (1 === $count) {
78 printf(
79 _x(
80 'This deprecated hook has %s on this site with this callback:',
81 'callback usages',
82 'codepress-admin-columns'
83 ),
84 '<strong>' . $count_string . '</strong>',
85 ); ?>
86 <br/>
87 <code class="acu-bg-[transparent] acu-text-[12px]"><?= $callbacks[0] ?></code>
88 <?php
89 } else {
90 printf(
91 _x(
92 'This deprecated hook has %s on this site with these callbacks:',
93 'callback usages',
94 'codepress-admin-columns'
95 ),
96 '<strong>' . $count_string . '</strong>'
97 );
98 ?>
99 <br/>
100 <code class="acu-bg-[transparent] acu-text-[12px]">
101 <?= implode(
102 '</code><br/><code class="acu-bg-[transparent] acu-text-[12px]">',
103 $callbacks
104 ); ?>
105 </code>
106 <?php
107 }
108 ?>
109 </div>
110 <?php
111 endif; ?>
112
113 </td>
114 <td class="acu-p-1 acu-px-3 acu-py-3 acu-text-nowrap acu-align-top" colspan="1">
115 <?= sprintf(
116 '<a href="%s" target="_blank">%s &raquo;</a>',
117 $this->documentation_url,
118 __('View documentation', 'codepress-admin-columns')
119 )
120 ?>
121 </td>
122 </tr>