Create a where clause that will make sure post queries
will always return results prior to (descending sort)
or before (ascending sort) the last post date.
Parameters
string
$where
object
$query
Returns
string
posts_per_page_query()
posts_per_page_query(object $query) : null
Let's overwrite the default post_per_page setting to always display a fixed amount.
Parameters
object
$query
Returns
null
has_wrapper()
has_wrapper() : bool
Check if the IS output should be wrapped in a div.
Setting value can be a boolean or a string specifying the class applied to the div.
Returns
bool
ajax_url()
ajax_url() : string
Returns the Ajax url
Returns
string
ajax_response()
ajax_response()
Our own Ajax response, avoiding calling admin-ajax
action_wp_head()
action_wp_head()
Alias for renamed class method.
Previously, JS settings object was unnecessarily output in the document head.
When the hook was changed, the method name no longer made sense.
action_wp_footer_settings()
action_wp_footer_settings() : string
Prints the relevant infinite scroll settings in JS.
Returns
string
action_wp_footer()
action_wp_footer() : string
Provide IS with a list of the scripts and stylesheets already present on the page.
Since posts may contain require additional assets that haven't been loaded, this data will be used to track the additional assets.