wordpress_envvar <- function(x) {
prefix <- "WORDPRESS_"
x <- paste0(prefix, x)
envvar <- Sys.getenv(x)
if (identical(envvar, "")) {
abort(
paste("Missing required environment variable", x),
class = "wordpress_invalid_envvar"
)
}
envvar
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.