classes/PodsComponents.php
public function is_component_active( $component ) {

		$active = false;

		if ( isset( $this->components[ $component ] ) && isset( $this->settings['components'][ $component ] ) && 0 !== $this->settings['components'][ $component ] ) {
			$active = true;
		}

		return $active;

	}
public function is_component_active( $component ) {

		$active = false;

		if ( isset( $this->components[ $component ] ) && isset( $this->settings['components'][ $component ] ) && 0 !== $this->settings['components'][ $component ] ) {
			$active = true;
		}

		return $active;

	}
public function is_component_active ( $ component ) { $ active = false ; if ( isset ( $ this -> components [ $ component ] ) && isset ( $ this -> settings [ 'components' ] [ $ component ] ) && 0 !== $ this -> settings [ 'components' ] [ $ component ] ) { $ active = true ; } return $ active ; }
Check if a component is active or not

@param string $component The component name to check if active.

@return bool

@since 2.7.0
Check if a component is active or not