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 );