Wordpress Hook: Dynamic Tag
I want to set the Tag of a Wordpress Hook dynamically with a passed variable:
from
add_action('thesis_hook_multimedia_box', 'feat_listings');
to
add_action($tb_featured_listings_hook, 'feat_listings');
This doesn't wo开发者_StackOverflow社区rk, but it sure looks like it should...
Figured it out.
add_action(get_option('tb_featured_listings_hook'), 'feat_listings');
精彩评论