Link_Abstract::is_visible()

{@inheritDoc}


Source

File: src/Tribe/Views/V2/iCalendar/Links/Link_Abstract.php

	public function is_visible() {
		$visible = $this->visible;

		/**
		 * Allows filtering of the visibility for the links.
		 *
		 * @since 5.14.0
		 *
		 * @param boolean $visible Whether to display the link.
		 *
		 * @return boolean $visible Whether to display the link.
		 */
		$visible = (boolean) apply_filters( 'tec_views_v2_subscribe_link_visibility', $visible );

		/**
		 * Allows link-specific filtering of the visibility.
		 *
		 * @since 5.14.0
		 *
		 * @param boolean $visible Whether to display the link.
		 *
		 * @return boolean $visible Whether to display the link.
		 */
		$visible = (boolean) apply_filters( 'tec_views_v2_subscribe_link_' . self::get_slug() . '_visibility', $visible );

		// Set the object property to the filtered value.
		$this->set_visibility( $visible );

		// Return
		return $visible;
	}