Add code in function.php

add_filter(‘admin_init’, ‘fbfn’);
function fbfn()
{
register_setting(‘general’, ‘fb_id’, ‘esc_attr’);
add_settings_field(‘fb_id’,”.__(‘Become a fan ‘ , ‘fb_id’ ).” , ‘fb_html’, ‘general’);
}
function fb_html()
{
$fb = get_option( ‘fb_id’, ” );
echo “<input type=’text’ id=’fb_id’ name=’fb_id’ value='”.$fb.”‘ >”;
}

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...