I hereby claim:
- I am rupokify on github.
- I am rupok (https://keybase.io/rupok) on keybase.
- I have a public key ASB1lzHC0eYQeIkJEKQzDVCLiunQwwsB2BSgTbF5mDfJKQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| function flush_divi() { | |
| include_once get_template_directory(). '/core/components/PageResource.php'; | |
| ET_Core_PageResource::remove_static_resources( 'all', 'all' ); | |
| } | |
| add_action('wp_head', 'flush_divi'); |
| <?php | |
| add_shortcode( 'copycoupon', 'copy_text_shortcode' ); | |
| function copy_text_shortcode( $atts ) { | |
| ?> | |
| <p id="text-to-copy"><?= $atts['coupon'] ?></p> | |
| <button id="copybutton">Copy to Clipboard</button> | |
| <?php | |
| } | |
| add_action( 'wp_footer', 'copy_to_clipboard' ); |
| <?php | |
| // WordPress 5.6 comes with a very recent version of jQuery and it's not suggested to use an older one. | |
| if (!function_exists('load_custom_jquery')) { | |
| function load_custom_jquery() { | |
| if (is_page(array('page-slug-one', 'page-slug-two'))) { // Replace 'page-slug-one', 'page-slug-two' etc with your own page slug | |
| wp_dequeue_script('jquery'); | |
| wp_deregister_script('jquery'); |
| <?php | |
| //Redirect Logged-in users from front page to another page | |
| function my_logged_in_redirect() { | |
| if (is_front_page() && is_user_logged_in()) { | |
| // Replace "YOUR_URL_HERE" with your target URL | |
| wp_redirect( 'YOUR_URL_HERE', 301 ); | |
| exit; | |
| } | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>HKAtrialFibrillationDetectionOnboardingCompleted</key> | |
| <integer>1</integer> | |
| <key>HKElectrocardiogramOnboardingCompleted</key> | |
| <integer>3</integer> | |
| </dict> | |
| </plist> |
| function show_blog_list() { | |
| $user_id = get_current_user_id(); | |
| if ($user_id == 0) { | |
| echo 'You are not logged in.'; | |
| } else { | |
| echo '<h2>Your Blog List with Prosite Levels</h2>'; | |
| $user_blogs = get_blogs_of_user( $user_id ); | |
| foreach ($user_blogs AS $user_blog) { | |
| global $psts; | |
| echo '<li><a href="'.$user_blog->siteurl.'">'.$user_blog->blogname.'</a> - Pro Sites Level: '.$psts->get_level( $user_blog->userblog_id ).'</li>'; |
I hereby claim:
To claim this, I am signing this object: