Skip to content

Instantly share code, notes, and snippets.

@freddielore
Created January 13, 2019 03:15
Show Gist options
  • Save freddielore/59a0b50e30af34e47c5061667e9797f3 to your computer and use it in GitHub Desktop.
Save freddielore/59a0b50e30af34e47c5061667e9797f3 to your computer and use it in GitHub Desktop.
[Smart SEO Export Fields] Lets you export other custom fields to include in bulk editing
<?php
add_filter( 'smart_seo_export_fields', 'child_export_other_custom_fields', 8, 1 );
function child_export_other_custom_fields( $fields ){
$fields[] = '_custom_field_name'; // _custom_field_name will exported to CSV as well
$fields[] = '_another_custom_field'; // _another_custom_field will exported to CSV as well
return $fields;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment