Thread Starter
carlae
(@carlae)
It sounds like a good solution but it’s not working. I’m not a real hero with code, I must be doing something wrong. I put the following code in my function.php:
<?php function save_theatre_meta( $post_id ) {
$slug = 'theatre';
if ( $slug != $_POST['theatre'] ) {
return;
}
update_post_meta( $post_id, '_pronamic_google_maps_active', 'true' );
}
add_action( 'save_post', 'save_theatre_meta');
?>
I hope you can tell me what I’m doing wrong.
I would also love this feature.