HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.27.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 4 04:40:11 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/elrashedytravel/public_html/wp-content/themes/tutorstarter/inc/Custom/Extras.php
<?php
/**
 * Handles Extra functionalities
 *
 * @package Tutor_Starter
 */

namespace Tutor_Starter\Custom;

defined( 'ABSPATH' ) || exit;

/**
 * Extras class
 */
class Extras {

	/**
	 * Register default hooks and actions for WordPress
	 */
	public function register() {
		add_filter( 'body_class', array( $this, 'body_class' ) );
	}

	/**
	 * Body class
	 *
	 * @param [type] $classes as args.
	 *
	 * @return array $classes
	 */
	public function body_class( $classes ) {

		// Adds a class of group-blog to blogs with more than 1 published author.
		if ( is_multi_author() ) {
			$classes[] = 'group-blog';
		}
		// Adds a class of hfeed to non-singular pages.
		if ( ! is_singular() ) {
			$classes[] = 'hfeed';
		}

		return $classes;
	}
}