31 reputation
17
bio website
location
age
visits member for 3 years, 6 months
seen Apr 23 at 18:57

Dec
5
awarded  Revival
Aug
9
comment Remove action from shortcode
Sorry, but it was not helpful. You are checking existence of some shortcode, but I wanted to remove action from related shortcode function (see my working solution).
Aug
9
awarded  Supporter
Jul
19
awarded  Teacher
Apr
17
answered Filter media upload attachment meta
Apr
5
awarded  Scholar
Apr
5
accepted Remove action from shortcode
Apr
3
answered Remove action from shortcode
Apr
3
comment Remove action from shortcode
Yes, but it does not work, because you cannot remove action which does not exist yet. Action custom_function() is running when add_shortcode() is applied.
Apr
3
comment Remove action from shortcode
Sorry, I made some more changes to code example. Yes, I tried to use remove_action() and hook to wp_head, but no success. I also tried to debug actions and change priorities. Now custom_function() is bound to some_hook and from wp_head is called setup_theme() function which contains add_shortcode().
Apr
3
revised Remove action from shortcode
Some other code changes, add_shortcode() is called within another action...
Apr
3
comment Remove action from shortcode
Thank you for your answer! By removing this shortcode, I will also remove the whole test_shortcode() function which is very huge and sometimes updated by theme authors. Then I would have to add new shortcode with the same function (except add_action part). But the original function can be changed during theme update and so there could be problems. And that is why I wanted only remove small part of it - add_action() function.
Apr
3
awarded  Editor
Apr
3
revised Remove action from shortcode
Improved explanation of function
Apr
3
asked Remove action from shortcode
Oct
26
awarded  Enthusiast
Oct
19
comment Combining action and filter?
Yes, it would be possible, thank you for your answer. But is there any "plugin" solution (without editing theme files)? I also found another solution - set only one size and for sidebar create function which will replace size in HTML. But in this case I have to modify theme files...
Sep
29
awarded  Student
Sep
29
asked Combining action and filter?
Feb
26
awarded  Tumbleweed