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
function ar_add_post_meta_to_order_api_response( $response ) { | |
$data = $response->get_data(); | |
// Adding your custom field: | |
$data['postmeta'] = get_post_meta( $data['id'] ); | |
$response->set_data( $data ); | |
return $response; |
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
#Add within server block to fix conflicts between permalinks when WP is installed within another WP installation | |
location /subdirectory/ { | |
try_files $uri $uri/ /subdirectory/index.php?$query_string; | |
} |