Skip to content

Instantly share code, notes, and snippets.

View Rajinsharwar's full-sized avatar
🥹

Rajin Sharwar Rajinsharwar

🥹
View GitHub Profile
<?php
if (class_exists('LaunchWP\Main')) {
$flush = new LaunchWP\Main();
$flush->flush_full_launchwp_cache();
}
<?php
$urls = [ 'https://example.com/page-1', 'https://example.com/page-2' ];
if (class_exists('LaunchWP\Main')) {
$flush = new LaunchWP\Main();
$flush->flush_launchwp_cache_for_urls( $urls );
}
<?php
$url = 'https://example.com/page-1';
if (class_exists('LaunchWP\Main')) {
$flush = new LaunchWP\Main();
$flush->flush_launchwp_cache_for_url( $url );
}
@Rajinsharwar
Rajinsharwar / elementor-page.json
Created May 1, 2025 17:49
elementor-page.json
{"type":"elementor","siteurl":"https://markedjump.s4-tastewp.com/wp-json/","elements":[{"id":"c7e89a7","elType":"section","isInner":false,"isLocked":false,"settings":{"_title":"","layout":"boxed","content_width":{"unit":"px","size":"","sizes":[]},"content_width_tablet":{"unit":"px","size":"","sizes":[]},"content_width_mobile":{"unit":"px","size":"","sizes":[]},"gap":"default","gap_columns_custom":{"unit":"px","size":"","sizes":[]},"gap_columns_custom_tablet":{"unit":"px","size":"","sizes":[]},"gap_columns_custom_mobile":{"unit":"px","size":"","sizes":[]},"height":"default","custom_height":{"unit":"px","size":400,"sizes":[]},"custom_height_tablet":{"unit":"px","size":"","sizes":[]},"custom_height_mobile":{"unit":"px","size":"","sizes":[]},"column_position":"middle","content_position":"","overflow":"","stretch_section":"","html_tag":"","structure":"10","background_background":"","background_color":"","background_color_stop":{"unit":"%","size":0,"sizes":[]},"background_color_stop_tablet":{"unit":"%"},"background
/my-account/
/courses/
/dashboard/
/checkout/
/quiz/
/assignment/
/instructor/
/wp-json/academy/
/wp-json/learnpress/
/wp-json/wp/v2/users/
/thank-you/
/account/
/login/
/register/
/unauthorized/
/mepr/
/wp-json/wp/v2/app_pages/
/wp-json/buddyboss/
/wp-json/buddyboss-app/
/wp-json/appboss/
/members/
/videos/
/photos/
/documents/
/groups/
/forums/
@Rajinsharwar
Rajinsharwar / buddyboss_nginx.conf
Created March 23, 2025 18:27
NGINX conf to enable Buddyboss Media Restrictions
location ~* /wp-content/uploads/bb_medias/ {
if ( $upstream_http_x_accel_redirect = "" ) {
return 403;
}
internal;
}
location ~* /wp-content/uploads/bb_videos/ {
if ( $upstream_http_x_accel_redirect = "" ) {
return 403;
}
.wp-block-post-featured-image.alignfull img, .wp-block-post-featured-image.alignwide img {
border-radius: 10px !important;
}
.alignwide .wp-block-post-featured-image{
margin-top:25px!important;
}
.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li {
width: 100% !important;
}
.has-x-large-font-size {