最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to add plugin version update option in plugin row action?

programmeradmin3浏览0评论

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>&nbsp;</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>&nbsp;</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 0
Add a comment  | 

1 Answer 1

Reset to default 0

If 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>&nbsp;</td><td colspan="2"><p style="background-color: #d54e21; padding: 10px; color: #f9f9f9; margin-top: 10px"><strong>Important Notice!</strong></td></tr>';
}, 10, 3 );
发布评论

评论列表(0)

  1. 暂无评论