This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Returns array with repeater subfields and its values | |
function repeater_get_post_meta( $repeater_key, $post_id, $sub_field_keys ) { | |
if ( ! $post_id ) { | |
$post_id = get_the_ID(); | |
} | |
// get repeater field | |
$repeater = get_post_meta( get_the_ID(), $repeater_key, true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Making an HTTP Post call, and passing the URL | |
HttpPost httpPost = new HttpPost(url); | |
httpPost.setHeader("content-type", "application/json"); | |
HttpClient httpClient = new DefaultHttpClient(getHttpParameterObj(4000,4000)); | |
// Building the JSON object. | |
JSONObject data = new JSONObject(); | |