Description
Wrapper to wp_remote_post
Usage
$unserialized = bw_remote_post( $url, $args );Parameters
- $url
- ( string ) required – the request URL
- $args
- ( array ) required – array of args including body array
Returns
unserialized result or nullSource
File name: oik/includes/oik-remote.incLines:
1 to 11 of 11
function bw_remote_post( $url, $args ) { $request = wp_remote_post( $url, $args ); if ( is_wp_error ($request ) ) { bw_trace2( $request, "request is_wp_error" ); $result = $request; // Was NULL } else { $result = bw_retrieve_result( $request ); } bw_trace2( $result, "result" ); return( $result ); }View on GitHub View on Trac
Called by
1 to 6 of 6
- oik_check_for_theme_update() – Check an oik-themes server for an updated theme
- oik_check_for_update() – Check an oik-plugins server for an updated plugin
- oik_check_these_for_update() – Check these plugins for updated versions
- oik_lazy_pluginsapi() – Implement "plugin_information" for our own plugins
- oik_lazy_themes_api_result() – Implement "themes_api_result" filter to add our own themes
- oik_remote::bw_remote_post() – Wrapper to wp_remote_post
Invoked by
Calls
1 to 2 of 2
