$jprp = Jetpack_RelatedPosts::init();
remove_filter( 'the_content', array( $jprp, 'filter_add_target_to_dom' ) );
Should work fine. The Jetpack_RelatedPosts init function implements the singleton pattern, so calling it will return the already instantiated instance, which you can use to remove the filter.
Just make sure you call your code late enough. The main module is hooking the add_action to functions coming from the ‘wp’ action hook, so you need to hook after that. The ‘plugins_loaded’ and ‘init’ hooks would be too early. You could hook to the ‘wp’ action yourself, with a priority of greater than 10 and that should do the trick.
Related Posts:
- Plugin Form Submission Best Practice
- PHP error with shortcode handler from a class
- Using a plugin class inside a template
- How to create a flexible abstraction for WP_Query?
- What is the correct way to build a widget using OOP
- How to make method from plugin available in theme?
- Using OOP plugin’s methods throughout the website
- Single Responsibility Principle and WP Classes
- How Can I Add a Filter to Class Instance Only?
- The ideal place for storing persistent PHP objects
- Plugin Architecture/Design Pattern – is better to use a private Observer/Mediator Pattern for plugin subclasses or WP add_action?
- Using a front controller in a WordPress plugin, any suggestions?
- set_sale_price in WooCommerce [closed]
- WordPress Ajax callback function from plugin – OOP
- How do you render_callback for register_block_type to a method in another class?
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Registering and using actions which return results in a Plugin class
- Advice on plugin structure
- Applying OO patterns and principles to plugin development
- Creating a shortcode, but getting tied up with OOP and Classes?
- Plugin Architecture Question: How to avoid using transients
- What is the proper method of using global $post?
- Hook into Jetpacks Publicize without using a post type
- Dynamically creating classes for Widget API
- WordPress class, using add_action to call member function does not work
- Remove an action by extending class and replacing it
- Using OOP inside a Plugin – Is it allowed?
- A question about add_action()
- WordPress plugin development OOP style
- OOP plugin not working
- How to call a function from a shortcode function in an oop plugin
- Bad request 400 using class based files
- functions won’t fire after I converted my code from procedural code to OOP
- Performing ajax request in wordpress
- Error when activating a custom plugin on production server
- OOP development and hooks
- How to set a public variable in someone else’s plugin class
- How to Maintain url on form submit
- How is construct function working even when variable is assigned null value?
- Object Oriented plugin, add action and variables
- How do I create Widget within plugin that uses its own class?
- Method not receiving attributes from shortcode call, general OOP problems
- Is there any plugin development framework
- How do I add CSS options to my plugin without using inline styles?
- Handling results from data hooked into admin_post
- How do I create links at the top of WP_List_table?
- Why Does get_posts() Return an Empty Set?
- Get list of available wordpress actions
- Where to enqueue stylesheets for plugin?
- How can i list current author’s categories?
- stray elements
- Rest Api How to get results of child categories with one api call
- Add Post and Comments menu no longer visible
- WordPress password reset – why post rp_key?
- How to modify the new WordPress 4.5 link inline toolbar
- Proper way to hook wp_get_attachment_url
- How to install WordPress Popular Posts plugin twice?
- Get the link text
- Multisite plugin development and wp_enqueue_script
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- How to set “Site Address (URL)” programmatically on WP multisite?
- Modify hard-coded conditionals for roles to custom roles
- Reset plugins version cache | pre_set_site_transient_update_plugins
- Add column and post filter for a custom post type field on the edit.php page
- How to access noticeOperations from withNotices
- How to fetch all images from a WordPress draft using PHP?
- parse content from wikipedia article replacing search term with the title of article
- Thickbox doesn’t respect dimensions when used in admin [duplicate]
- Why is my plugin version 0.1?
- WP Plugin Running before jQuery
- How to include jQuery into my plugin so I can use it on plugin page?
- Prevent WordPress automatically processing certain URL queries
- Undefined method class::construct() when creating a plugin
- WordPress multisite,use same cookies across all website?
- How to check via conditional tags for a single plugin page?
- How to save post meta as an array in Gutenberg?
- How to disable a jQuery plugin on WordPress plugin page
- Is it possible to use WP-CLI in a plugin (or theme)?
- Adding an external stylesheet to a plugin
- WP_NAV_MENU filter targets all menus
- Restore svn trunk of my plugin repository to the initial state?
- Anyone using unzip_file successfully? It uploads the zip but doesn’t extract it!
- How to use attributes in competent of Gutenberg
- How to write a custom shortcode name book?
- Hook to execute after deleting a Custom Taxonomy
- get the term_id of current taxonomy page
- Custom non-template page on front end fails to render
- Add custom parameter for custom user role
- WordPress Iframe for blog image
- Add the Twitter Bootstrap framework for the development of my plugins
- Code to add template to page
- Convert each new line in the textfield as a new value in an array
- How do I control the list of Pages an author can see?
- Custom query not working in plugin admin page
- How to work with AJAX and WordPress?
- Add Page With Parent ID
- Remove text from confirmation message
- Can I use an array to create multiple tables?
- How to boost WP custom post REST API GET queries by custom taxonomies
- I want to redirect user to an amazon product page from my wordpress website when they add product to there cart [closed]