\Jetpack_Infinite_Scroll_Extras

Jetpack-specific elements of Infinite Scroll

Summary

Methods
Properties
Constants
instance()
action_jetpack_modules_loaded()
module_configuration_load()
action_admin_init()
setting_google_analytics()
sanitize_boolean_value()
action_after_setup_theme()
filter_infinite_scroll_js_settings()
action_wp_enqueue_scripts()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$__instance
$option_name_google_analytics
N/A

Properties

$__instance

$__instance

$option_name_google_analytics

$option_name_google_analytics

Methods

instance()

instance() : object

Singleton implementation

Returns

object

action_jetpack_modules_loaded()

action_jetpack_modules_loaded() : null

Enable "Configure" button on module card

Returns

null

module_configuration_load()

module_configuration_load() : null

Redirect configure button to Settings > Reading

Returns

null

action_admin_init()

action_admin_init() : null

Register Google Analytics setting

Returns

null

setting_google_analytics()

setting_google_analytics() : \html

Render Google Analytics option

Returns

\html

sanitize_boolean_value()

sanitize_boolean_value(mixed $value) : bool

Sanitize value as a boolean

Parameters

mixed $value

Returns

bool

action_after_setup_theme()

action_after_setup_theme() : null

Load theme's infinite scroll annotation file, if present in the IS plugin.

The setup_theme action is used because the annotation files should be using after_setup_theme to register support for IS.

As released in Jetpack 2.0, a child theme's parent wasn't checked for in the plugin's bundled support, hence the convoluted way the parent is checked for now.

Returns

null

filter_infinite_scroll_js_settings()

filter_infinite_scroll_js_settings( $settings) : array

Modify Infinite Scroll configuration information

Parameters

$settings

Returns

array

action_wp_enqueue_scripts()

action_wp_enqueue_scripts() : null

Always load certain scripts when IS is enabled, as they can't be loaded after `document.ready` fires, meaning they can't leverage IS's script loader.

Returns

null

__construct()

__construct() : null

Register actions and filters

Returns

null