You appear to be a bot. Output may be restricted
Description
Register actions and filters, plus parse IS settings
Usage
$null = The_Neverending_Home_Page::__construct();
Parameters
Returns
null
Source
File name: jetpack/modules/infinite-scroll/infinity.php
Lines:
1 to 24 of 24
function __construct() { add_action( 'pre_get_posts', array( $this, 'posts_per_page_query' ) ); add_action( 'admin_init', array( $this, 'settings_api_init' ) ); add_action( 'template_redirect', array( $this, 'action_template_redirect' ) ); add_action( 'customize_preview_init', array( $this, 'init_customizer_assets' ) ); add_action( 'template_redirect', array( $this, 'ajax_response' ) ); add_action( 'custom_ajax_infinite_scroll', array( $this, 'query' ) ); add_filter( 'infinite_scroll_query_args', array( $this, 'inject_query_args' ) ); add_filter( 'infinite_scroll_allowed_vars', array( $this, 'allowed_query_vars' ) ); add_action( 'the_post', array( $this, 'preserve_more_tag' ) ); add_action( 'wp_footer', array( $this, 'footer' ) ); add_filter( 'infinite_scroll_additional_scripts', array( $this, 'add_mejs_config' ) ); // Plugin compatibility add_filter( 'grunion_contact_form_redirect_url', array( $this, 'filter_grunion_redirect_url' ) ); // AMP compatibility // needs to happen after parse_query so that Jetpack_AMP_Support::is_amp_request() is ready. add_action( 'wp', array( $this, 'amp_load_hooks' ) ); // Parse IS settings from theme self::get_settings(); }