wordpress_basic_auth <- function(
username = wordpress_username(),
password = wordpress_password()
) {
httr::authenticate(username, password, type = "basic")
}
wordpress_username <- function() {
wordpress_envvar("USERNAME")
}
wordpress_password <- function() {
wordpress_envvar("PASSWORD")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.