Admin Settings – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Fri, 01 Oct 2021 15:53:13 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 WordPress Settings API: Add to header code programmatically https://priyank.rocks/wordpress-settings-api-add-to-header-code-programmatically/ Fri, 01 Oct 2021 15:46:32 +0000 https://priyank.rocks/?p=8444 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");
}
]]>