Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update naming to ALR #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Plugin Name: WP Rocket | Disable Lazy Render Content
* Description: Disable Lazy Render Content Optimization.
* Plugin URI: https://docs.wp-rocket.me/article/1835-lazy-render-content#how-to-deactivate-this-feature
* Plugin Name: WP Rocket | Disable Automatic Lazy Rendering
* Description: Disable Automatic Lazy Rendering Optimization.
* Plugin URI: https://docs.wp-rocket.me/article/1835-automatic-lazy-rendering#how-to-deactivate-this-feature
* Author: WP Rocket Support Team
* Author URI: http://wp-rocket.me/
* License: GNU General Public License v2 or later
Expand All @@ -11,12 +11,12 @@
* Copyright SAS WP MEDIA 2024
*/

namespace WP_Rocket\Helpers\disable_lazy_render_content;
namespace WP_Rocket\Helpers\disable_automatic_lazy_render;

// Standard plugin security, keep this line in place.
defined( 'ABSPATH' ) or die();

// Disable Lazy Render Content Optimization
// Disable Automatic Lazy Rendering Optimization
add_filter( 'rocket_lrc_optimization', '__return_false', 999 );


Expand All @@ -40,4 +40,4 @@ function deactivate_plugin() {
if ( function_exists( 'rocket_clean_domain' ) ) {
rocket_clean_domain();
}
}
}