File "Post.php"
Full Path: /www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/includes/B2S/Api/Post.php
File size: 550 bytes
MIME-type: --
Charset: utf-8
<?php
class B2S_Api_Post {
public static function post($url = '', $post = array(), $timeout = 30) {
if (empty($url) || empty($post)) {
return false;
}
$args = array(
'method' => 'POST',
'body' => $post,
'timeout' => $timeout,
'redirection' => '5',
'user-agent' => "Blog2Social/" . B2S_PLUGIN_VERSION . " (Wordpress/Plugin)",
);
return wp_remote_retrieve_body(wp_remote_post($url . 'post.php', $args));
}
}