Timeline for add_filter() function misunderstanding
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 25, 2020 at 9:22 | answer | added | Anton | timeline score: 0 | |
Apr 30, 2016 at 15:18 | vote | accept | Selhar | ||
Apr 30, 2016 at 15:17 | vote | accept | Selhar | ||
Apr 30, 2016 at 15:18 | |||||
Apr 30, 2016 at 7:27 | answer | added | Owais Alam | timeline score: 0 | |
Apr 29, 2016 at 16:19 | comment | added | Selhar |
apply_filters adds the possibility of changing $sections with a certain key. And to alter $sections i have to use add_filters(certain_key, function_to_process_sections) , correct?
|
|
Apr 29, 2016 at 16:16 | history | edited | Max Yudin | CC BY-SA 3.0 |
md, noise removed
|
Apr 29, 2016 at 16:15 | comment | added | Milo |
apply_filters gives you the option of altering $sections before it is returned from the function. if there are no filters added to onepage_sections , then apply_filters just passes the unaltered value through unchanged.
|
|
Apr 29, 2016 at 16:14 | comment | added | Selhar | It's used by another function, that also adds another apply_filter. | |
Apr 29, 2016 at 16:14 | comment | added | bravokeyl | Isn't this function being used any where in the theme? | |
Apr 29, 2016 at 16:12 | comment | added | Selhar | But the thing is, if i remove or alter this function the front end content will be affected, but i don't see how since there is no add_filter | |
Apr 29, 2016 at 16:11 | comment | added | bravokeyl |
Filters are added so that the plugins or child themes can easily modify/filter, so if the theme doesn't any have add_filter() doesn't mean it isn't useful
|
|
Apr 29, 2016 at 16:07 | review | First posts | |||
Apr 29, 2016 at 18:04 | |||||
Apr 29, 2016 at 16:04 | history | asked | Selhar | CC BY-SA 3.0 |