spaces()->get( (string) $id ); } /** * Returns the URL of the Foldivo Pro product page. * * This is a plain link: the free plugin never contacts this URL. * * @param string $context Optional place where the link is shown (`plugins`, `settings-tab`, `app`…). * @return string */ function foldivo_get_pro_url( $context = '' ) { /** * Filters the URL of the Foldivo Pro product page. * * @param string $url Product page URL. * @param string $context Place where the link is shown ('' when unknown). */ return (string) apply_filters( 'foldivo_pro_url', 'https://solutions.leyoweb.com/products/foldivo-pro/', (string) $context ); } /** * Tells whether the Foldivo Pro add-on is loaded. * * @return bool */ function foldivo_is_pro_active() { /** * Filters whether Foldivo Pro is considered loaded (hides every Foldivo Pro mention when true). * * @param bool $active Whether `FOLDIVO_PRO_VERSION` is defined. */ return (bool) apply_filters( 'foldivo_is_pro_active', defined( 'FOLDIVO_PRO_VERSION' ) ); }