Make WordPress Core


Ignore:
Timestamp:
04/11/2007 05:38:30 AM (18 years ago)
Author:
rob1n
Message:

Add the_meta_key filter with $key and $value arguments. Props mdawaffe. fixes #2861

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r5199 r5241  
    234234            $values = array_map('trim', get_post_custom_values($key));
    235235            $value = implode($values,', ');
    236             echo "<li><span class='post-meta-key'>$key:</span> $value</li>\n";
     236            echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>$key:</span> $value</li>\n", $key, $value);
    237237        }
    238238        echo "</ul>\n";
Note: See TracChangeset for help on using the changeset viewer.