admin管理员组文章数量:1394057
I want to add version update option in wp plugin activation row.
Please get the attached link
$path = plugin_basename( __FILE__ );
add_action('after_plugin_row_{$path}' array( $this, 'call_back_plugin_row_action ' ), 10, 3);
function call_back_plugin_row_action ( $plugin_file, $plugin_data, $status ) {
echo '<tr class="active">
<td> </td>
<td colspan="2">Some Description for update</td>
</tr>';
}
I have used this code but nothing is showing ..check here
Regards Mainuddin
I want to add version update option in wp plugin activation row.
Please get the attached link https://prnt.sc/rrgj0l
$path = plugin_basename( __FILE__ );
add_action('after_plugin_row_{$path}' array( $this, 'call_back_plugin_row_action ' ), 10, 3);
function call_back_plugin_row_action ( $plugin_file, $plugin_data, $status ) {
echo '<tr class="active">
<td> </td>
<td colspan="2">Some Description for update</td>
</tr>';
}
I have used this code but nothing is showing ..check here https://prnt.sc/rrgbf5
Regards Mainuddin
Share Improve this question edited Apr 2, 2020 at 10:20 Mainuddin Rashed asked Apr 2, 2020 at 9:36 Mainuddin RashedMainuddin Rashed 214 bronze badges 01 Answer
Reset to default 0If I get you right, you want add custom text after plugin row.
Example:
$path = plugin_basename( __FILE__ );
add_action( "after_plugin_row_{$path}", function ( $plugin_file, $plugin_data, $status ) {
echo '<tr class="active"><td> </td><td colspan="2"><p style="background-color: #d54e21; padding: 10px; color: #f9f9f9; margin-top: 10px"><strong>Important Notice!</strong></td></tr>';
}, 10, 3 );
本文标签: How to add plugin version update option in plugin row action
版权声明:本文标题:How to add plugin version update option in plugin row action? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744607522a2615448.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论