Skip to main content
wordpressAdmin SettingsSettings API

WordPress Settings API: Add to header code programmatically

By October 1, 2021No Comments

Develop WordPress custom header code for the backend using the WordPress Settings API.

Programatically develop add code to the header module

1
2
3
4
5
6
7
// source: https://www.codegrepper.com/code-examples/php/wordpress+add+to+header

add_action('wp_head', 'pa_load_fonts');
function pa_load_fonts()
{
    echo get_option("manage_body_font_path");
}