Step 1: Add the main content filter

Add the following code into your functions.php file. Depending on other content filters that may be in place on your site, you may need to adjust the priority (20) to ensure the attribution appears in the correct spot.

Step 2: Add text and class filters [OPTIONAL]

So you don’t need to tinker with the attribution filter function, here are two additional filters to customize the attribution text and classes.

Filter the Attribution Text
Filter the Attribution Classes