This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('checkout_processing_output', 'processing_output', 10, 2); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Change the "Processing Order..." output on the payment page of the checkout procedure | |
function processing_output($html = null, $pmethod = null) { | |
// Change $html here as needed | |
$html = 'New text or html for the payment page...'; | |
return $html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post; | |
$post_id = $post -> ID; | |
if (function_exists('wpco_is_category')) { | |
if ($category = wpco_is_category($post_id)) { | |
// then based on category ID, you can do something... | |
if ($category -> id == X) { | |
echo 'This is some text/html to show on the category page'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array( | |
'email' => $_POST['email'], | |
'list_id' => array(1,2), | |
'mailinglists' => array(1,2), | |
'firstname' => $firstname, //$firstname variable contains the Prenom | |
); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wpmlposts"> | |
[newsletters_post_loop] | |
<h2>[newsletters_category_heading]</h2> | |
<div class="wpmlpost"> | |
<h3><a href="[newsletters_post_link]" title="[newsletters_post_title]">[newsletters_post_title]</a></h3> | |
[newsletters_post_date_wrapper]<p><small>Posted on [newsletters_post_date format="F jS, Y"] by [newsletters_post_author]</small></p>[/newsletters_post_date_wrapper] | |
<div class="wpmlpost_content"> | |
[newsletters_post_thumbnail] | |
<p>[newsletters_post_excerpt]</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.newslettername-wrapper { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php add_filter('newsletters_emailbody_links', 'emailbody_links', 10, 3); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function emailbody_links($body = null, $history_id = null, $matches = null) { | |
global $Html; | |
if (!empty($matches)) { | |
foreach ($matches[1] as $key => $value) { | |
$pattern = '/[\'"](' . preg_quote($value, '/') . ')[\'"]/si'; | |
$newlink = $Html -> retainquery('param1=value1', $value); | |
$body = preg_replace($pattern, '"' . $newlink . '"', $body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php add_filter('wpml_send_body', 'myfunc_send_body', 10, 3); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('wpml_send_body', 'myfunc_send_body', 10, 3); | |
function myfunc_send_body($body = null, $phpmailer = null, $history_id = null) { | |
// Do something with the body/content here... | |
// For example, strip the HTML from it and assign it as the alternative body | |
$phpmailer -> AltBody = strip_tags($body); | |
// Or append something to it like social media icons at the end | |
$body .= '<div>Social media HTML</div>'; |