WordPress.org

Forums

Jetpack by WordPress.com
[resolved] [closed] Jetpack with only custom CSS module (3 posts)

  1. frisco
    Member
    Posted 1 year ago #

    I have an installation where Jetpack development mode is enabled and I have manually deactivated all modules except Custom CSS. Nevertheless, I see the following actions are still being performed:

    Jetpack::check_open_graph
    jetpack_matt_random_redirect
    jetpack_load_theme_compat
    jetpack_load_theme_tools
    Jetpack::extra_oembed_providers
    Jetpack::check_twitter_tags
    Jetpack::check_rest_api_compat
    jetpack_register_genericons
    Jetpack_Comic::init
    Jetpack_Testimonial::init
    Nova_Restaurant::init

    Ignoring devicepx, is there a way via filters to do absolutely nothing except what is required for Custom CSS?

    I'm aware of this Gist to force deactivate all but 1 module, https://gist.github.com/jeherve/7872205. But that is what I have manually done, so I doubt it will get me closer to my goal.

    https://wordpress.org/plugins/jetpack/

  2. Ben Lobaugh (blobaugh)
    Jetpack Engineer
    Plugin Contributor

    Posted 1 year ago #

    Hi frisco,

    This is the anticipated, though not very desirable behavior. If you take a look at https://github.com/Automattic/jetpack/blob/master/modules/module-extras.php you will see where this is happening. This file is responsible for loading any code that needs to be available for any other module or theme item to load.

    While I was looking over some other code that led me to that file recently I realized that the filter in that file is being under utilized and we can do a better job of breaking it out so that everything you mentioned can be fine tuned. There is a ticket related to it at https://github.com/Automattic/jetpack/issues/148. I am going to try to knock it out before the next release (3.0).

  3. frisco
    Member
    Posted 1 year ago #

    Thanks, Ben. I'll follow the Github issues and make any comments there if appropriate.

    I realize that most of this is minor stuff time-wise. What caught my eye was the Nova_Restaurant::init because a) I happen to be in Northern VA, which is often referred to as "NoVA" and b) have nothing to do with restaurants other than eating in them :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.