This handy little snippet allows you to search your payment history by a particular ID in the WordPress admin. Simply enter the ID of the payment into the WordPress search field and your specific payment will be shown.

Copy the following into your child theme’s functions.php or a custom plugin.


  1. Thanks for the script, there is a minor issue though.
    line 8 should not be return;

    it should be: return $where;

    if you use return; it’s gonna wipe the where clause and ie. when you click on ‘pages’ it’s gonna show everything.

Comments are closed.