PUM_Site_Popups::init()

Hook the initialize method to the WP init action.


Description Description


Source Source

File: classes/Site/Popups.php

	public static function init() {

		// Preload the $loaded query.
		add_action( 'init', [ __CLASS__, 'get_loaded_popups' ] );

		// Check content for popups.
		add_filter( 'the_content', [ __CLASS__, 'check_content_for_popups' ] );

		// TODO determine if the late priority is needed.
		add_action( 'wp_enqueue_scripts', [ __CLASS__, 'load_popups' ], 11 );

		add_action( 'wp_footer', [ __CLASS__, 'render_popups' ] );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.