Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • In your functions.php insert this:

    function leads_integration_wp_cf7( $cf7 ) {
           $url = your_url_goes_here;
           $postparams = your_post_params_goes_here;
    
           $ch = curl_init($url);
           curl_setopt($ch, CURLOPT_POSTFIELDS, $postparams);
           curl_setopt($ch, CURLOPT_POST, 1);
           curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1 );
           curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
           $output = curl_exec($ch);
           curl_close($ch);
    }
    add_action('wpcf7_mail_sent', 'leads_integration_wp_cf7');

    Solution after Media Temple upgrates on Plesk and PHP.

    Edit the following file:
    /etc/httpd/conf.d/fcgid.conf

    Add this line (just below all of the other lines that start with ‘Fcgid’):

    FcgidMaxRequestLen 1073741824

    Restart your Apache web-server service with this command:

    service httpd restart

    Yey!

    Forum: Fixing WordPress
    In reply to: wp_admin_css

    You have to add this code bellow, for example:

    [please read https://codex.www.ads-software.com/Forum_Welcome#Posting_Code for posting code]

    function my_wp_admin_css() {
     echo '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_url').'/wp-admin.css">';
    }
    
    add_action('wp_admin_css','my_wp_admin_css');
    apply_filters( 'wp_admin_css','my_wp_admin_css' );

    Note that I’ve put the action too. I think that is something broken. So this is the workaround. =)

Viewing 3 replies - 1 through 3 (of 3 total)