Astra_Related_Posts::__construct()

Constructor function that initializes required actions and hooks


Description


Source

File: inc/modules/related-posts/class-astra-related-posts.php

	public function __construct() {

		// @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
		require_once ASTRA_RELATED_POSTS_DIR . 'class-astra-related-posts-loader.php';
		require_once ASTRA_RELATED_POSTS_DIR . 'class-astra-related-posts-markup.php';
		// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound

		// Include front end files.
		if ( ! is_admin() ) {
			require_once ASTRA_RELATED_POSTS_DIR . 'css/static-css.php'; // phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
			require_once ASTRA_RELATED_POSTS_DIR . 'css/dynamic-css.php'; // phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
		}
	}

Changelog

Changelog
Version Description
3.5.0 Introduced.

User Contributed Notes

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