Skip to main content
deleted 112 characters in body
Source Link
Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209

I have been struggling with this for a few hours trying all the various solutions like these with no result. Apparently since I am using WPGlobus plugin for multiple languages this would not work for me. Just wanted to write it here for somebody to save a few hours trying to disable auto formating while using WPGlobus plugin.

The solution with WPGlobus plugin:

Apparently it passes everything trough the wpautopwpautop function in the plugin. It is in the file wp-content\plugins\wpglobus\includes\class-wpglobus.phpwp-content\plugins\wpglobus\includes\class-wpglobus.php

I changed

    $post_content_autop = wpautop( $post_content ); 

to

    $post_content_autop = $post_content;

in the file and it disabled all autoformatting for me while using WPGlobus plugin.

Hope this helps somebody not to go through what I just did. :D

I have been struggling with this for a few hours trying all the various solutions like these with no result. Apparently since I am using WPGlobus plugin for multiple languages this would not work for me. Just wanted to write it here for somebody to save a few hours trying to disable auto formating while using WPGlobus plugin.

The solution with WPGlobus plugin:

Apparently it passes everything trough the wpautop function in the plugin. It is in the file wp-content\plugins\wpglobus\includes\class-wpglobus.php

I changed

    $post_content_autop = wpautop( $post_content ); 

to

    $post_content_autop = $post_content;

in the file and it disabled all autoformatting for me while using WPGlobus plugin.

Hope this helps somebody not to go through what I just did. :D

Apparently since I am using WPGlobus plugin for multiple languages this would not work for me. Just wanted to write it here for somebody to save a few hours trying to disable auto formating while using WPGlobus plugin.

The solution with WPGlobus plugin:

Apparently it passes everything trough the wpautop function in the plugin. It is in the file wp-content\plugins\wpglobus\includes\class-wpglobus.php

I changed

$post_content_autop = wpautop( $post_content ); 

to

$post_content_autop = $post_content;

in the file and it disabled all autoformatting for me while using WPGlobus plugin.

Hope this helps somebody not to go through what I just did.

Source Link

I have been struggling with this for a few hours trying all the various solutions like these with no result. Apparently since I am using WPGlobus plugin for multiple languages this would not work for me. Just wanted to write it here for somebody to save a few hours trying to disable auto formating while using WPGlobus plugin.

The solution with WPGlobus plugin:

Apparently it passes everything trough the wpautop function in the plugin. It is in the file wp-content\plugins\wpglobus\includes\class-wpglobus.php

I changed

    $post_content_autop = wpautop( $post_content ); 

to

    $post_content_autop = $post_content;

in the file and it disabled all autoformatting for me while using WPGlobus plugin.

Hope this helps somebody not to go through what I just did. :D