mailjet plugin – extend functionnalities and reuse api

Because the template is load before the plugin, i finaly decide to add the API directly from https://github.com/mailjet/mailjet-apiv3-php-no-composer I check the api: https://dev.mailjet.com/guides/?php#contactslist_managemanycontacts And build my function to send a contact to a list: // Get the value from the plugin mailjet-for-wordpress $apisecret = get_option(‘mailjet_password’); $apikey = get_option(‘mailjet_username’); require ‘mailjet-apiv3-php-no-composer/vendor/autoload.php’; use \Mailjet\Resources; function sendRegisterNewsletterToMailjet($params) { … Read more

WordPress Theme Conflict With Plugin

I found the solution on the problem with Downgrading the Woocommerce based on the Theme Woocommerce. The steps would be: Deactivate the Current Woocommerce Plugin Using FTP or File Manager delete the content of the folder “woocommerce” Download the Older Version of Woocommerce Unzip and Upload using FTP Activate again the Plugin

When in WordPress I try to run a php script directly I am redirected to the home page

To use an external script with ajax, you must register an action to trigger it. To do it, you need to use wp_ajax_YourAction and wp_ajax_nopriv_YourAction add_action(‘wp_ajax_YourAction’, ‘myAjaxFunction’); // just a way to quickly print your js add_action(‘wp_head’, ‘print_js’); function print_js(){ ?><script type=”text/javascript” > jQuery(document).ready(function($) { var data = { action: ‘YourAction’, fun: ’42’, }; $.post(ajaxurl, … Read more

Confusing problem with displaying message recipient metadata

As I see it, you could replace some things in the switch. You need to open and close , tag in the same case rule, do this avoid a lot error. Like this switch( $column ) { case ‘recipientname’ : <div class=”recipentusername”><a href=”https://wordpress.stackexchange.com/questions/243290/<?php echo um_user_profile_url(); ?>” target=”_blank”><?php _e(“”, ‘front-end-pm’); ?> <?php echo implode( $name );?> … Read more