geminilabs

[site-reviews] replace empty title with assigned "post name - author name"

Jul 18th, 2025 (edited)
831
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. add_filter('site-reviews/review/value/title', function ($value, $tag) {
  2.     if (!empty($tag->review->title)) {
  3.         return $value;
  4.     }
  5.     $post = $tag->review->assignedPosts()[0] ?? null;
  6.     if (empty($post)) {
  7.         return '';
  8.     }
  9.     $parts = array_filter([
  10.         get_the_title($post),
  11.         get_the_author_meta('display_name', $post->post_author),
  12.     ]);
  13.     $title = implode(' - ', $parts);
  14.     return trim($title);
  15. }, 10, 2);
  16.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Azkonuv
    2 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=ywaajurywv
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment