This is what I have in my plugins’ Editor.
====
<?php
/*
Plugin Name: Site plugin for Espresso
Description: Site specific code for Event Espresso
*/
/* Begin Adding Functions Below This Line */
function ee_payment_options_paypal_optional( $translated, $original, $domain ) {
$strings = array(
‘After finalizing your registration, you will be transferred to the PayPal.com website where your payment will be securely processed.’ => ‘After finalizing your registration, you will be transferred to the PayPal.com website where your payment will be securely processed. A PayPal account is not required and you can pay with a credit or debit card.’
);
if ( isset( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
I added your code to my own custom functions plugin and barring having to add in a strong HTML tag to the text it worked just fine: http://take.ms/F1cFx
That is a feature that we are looking to introduce in a future version of Event Espresso 4.
—
Lorenzo
Viewing 6 reply threads
The support post ‘Site Specific plugin with code snippets are not making changes at all.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.