Skip to content

Instantly share code, notes, and snippets.

@codersaiful
Last active October 15, 2018 06:40
Show Gist options
  • Save codersaiful/0a9231b4bcc86e0affb89ab51a64fde8 to your computer and use it in GitHub Desktop.
Save codersaiful/0a9231b4bcc86e0affb89ab51a64fde8 to your computer and use it in GitHub Desktop.
<?php
//codersaiful new code START here
if(isset($data['fields']['field61921']) && !empty($data['fields']['field61921'])){
$data['fields']['field61921'] = get_the_title($data['fields']['field61921']);
}
if(isset($data['fields']['field61922']) && !empty($data['fields']['field61922'])){
$data['fields']['field61922'] = get_the_title($data['fields']['field61922']);
}
//codersaiful new code END here
//Readme: Just copy inside START to END code and page into your updated plugin. Thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment