开发者

Wordpress Hook: Dynamic Tag

开发者 https://www.devze.com 2022-12-15 02:43 出处:网络
I want to set the Tag of a Wordpress Hook dynamically with a passed variable: from add_action(\'thesis_hook_multimedia_box\', \'feat_listings\');

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

精彩评论

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