File "Post.php"

Full Path: /www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/includes/PRG/Api/Post.php
File size: 537 bytes
MIME-type: --
Charset: utf-8

<?php

class PRG_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, $args));
    }

}