开发者

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');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜