problems changing options from code
-
Hi,
I want to change the options (specifically mails sent) and I saw a way to do it through code. We do it already directly on the options, but we want a more automatic way to do it. I am following the instuctions at templates/format/readme.txt but it doesn’t work, so I may have made some mistake.
I put a file bookings_contact_email_body.php inside the directory my-theme\plugins\events-manager\formats with a very simple content (hello), and also tried
<?php echo "hello";?>then on my functions.php I put this:
function my_em_custom_formats($array) { $my_formats = array('dbem_bookings_contact_email_body'); return $array + $my_formats; }add_filter(’em_formats_filter’, ‘my_em_custom_formats’, 1, 1);
Is there anything else I have to do? Did I do anything wrong.
Thanks.
The topic ‘problems changing options from code’ is closed to new replies.