_s add_theme_support for ‘infinite-scroll’ | WordPress.org

hi

i’m learning about WP themes and was looking at Automattic/_s git repo.

i’m curious how jetpack uses add_theme_support for ‘infinite-scroll’ feature. i’ve never seen this before.

can any theme use add_theme_support with a custom function like this to add specific functionality?

i think i understand how it’s rendered with the callback function via the loop which seems simple enough (again, if i understand correctly).

but are the ‘jetpack-content-options’ and ‘infinite-scroll’ arrays simply $args passed into add_theme_support?

it’s kinda blowing my mind and i’d like to try to understand it.

thank you <3



Source link