ID ) ) ) { $blog_page = get_post( $page_for_posts ); } } return $blog_page; } /** * @param string $location * @param string $title * @param string $anchor * @param string $target * @param string $class * @param string $id * * @return string */ static function get_upgrade_hyperlink( $location = '', $title = '', $anchor = '', $target = '', $class = '', $id = 'aio-pro-update' ) { $affiliate_id = ''; //call during plugins_loaded $affiliate_id = apply_filters( 'aiosp_aff_id', $affiliate_id ); //build URL $url = 'https://semperplugins.com/all-in-one-seo-pack-pro-version/'; if ( $location ) { $url .= '?loc=' . $location; } if ( $affiliate_id ) { $url .= "?ap_id=$affiliate_id"; } //build hyperlink $hyperlink = '$anchor"; return $hyperlink; } /** * Gets the upgrade to Pro version URL. */ static function get_upgrade_url() { //put build URL stuff in here } /** * Check whether a url is relative and if it is, make it absolute. * * @param string $url URL to check. * * @return string */ static function absolutize_url( $url ) { if ( strpos( $url, 'http' ) !== 0 && strpos( $url, '//' ) !== 0 && $url != '/' ) { $url = home_url( $url ); } return $url; } }