OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to make custom row actions on woocommerce product reviews

  • Thread starter Thread starter Moslem Fallah
  • Start date Start date
M

Moslem Fallah

Guest
Hello to all dear friends, How can we add a new row actions item to product reviews?

I used the following code, but the new item is not added

Code:
add_filter('comment_row_actions','my_action_row', 100, 2);

function my_action_row($actions, $comment){

        
        $actions = '<a href="http://www.google.com/?q='.get_permalink($post->ID).'">check if indexed</a>';

    return $actions;
}

I have included a picture for you https://postimg.cc/v4K2SwDB
<p>Hello to all dear friends,
How can we add a new row actions item to product reviews?</p>
<p>I used the following code, but the new item is not added</p>
<pre><code>add_filter('comment_row_actions','my_action_row', 100, 2);

function my_action_row($actions, $comment){


$actions = '<a href="http://www.google.com/?q='.get_permalink($post->ID).'">check if indexed</a>';

return $actions;
}
</code></pre>
<p>I have included a picture for you
<a href="https://postimg.cc/v4K2SwDB" rel="nofollow noreferrer">https://postimg.cc/v4K2SwDB</a></p>
Continue reading...
 
Top