'Plugin', 'utm_campaign' => 'Update Notice', 'utm_medium' => 'notification', ), $post->link ); $excerpt = wp_kses( $post->excerpt->rendered, array( 'a' => array( 'href' => array(), 'title' => array(), ), 'em' => array(), 'strong' => array(), ) ); return array( 'url' => $url, 'slug' => $post->slug, 'title' => $post->title->rendered, 'excerpt' => $excerpt, ); } } if ( ! function_exists( 'stackable_get_latest_update_article_cached' ) ) { /** * Gets the latest update article. Cached for 24 hours. */ function stackable_get_latest_update_article_cached() { $article = get_transient( 'stackable_update_article' ); if ( $article ) { return $article; } $article = stackable_get_latest_update_article(); set_transient( 'stackable_update_article', $article, 2 * 60 * 60 * 24 ); return $article; } }