This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| class User | |
| { | |
| public: | |
| std::string email, password; | |
| User(const std::string &email, const std::string &password) | |
| { | |
| this->email = email; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function simpay_custom_add_cache_exclusion( $uris ) { | |
| // Exclude a page such as https://mysite.com/custom-confirmation-page | |
| $uris[] = 'custom-confirmation-page'; | |
| return $uris; | |
| } | |
| add_filter( 'simpay_cache_exclusion_uris', 'simpay_custom_add_cache_exclusion' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "wp-simple-pay-lite", | |
| "title": "WP Simple Pay Lite for Stripe", | |
| "description": "Add high conversion Stripe Checkout forms to your WordPress site and start accepting payments in minutes. **Lite Version**", | |
| "version": "4.4.71", | |
| "license": "GPL-2.0-or-later", | |
| "homepage": "https://wpsimplepay.com/", | |
| "repository": { | |
| "type": "git", | |
| "url": "https://github.com/wpsimplepay/wp-simple-pay-lite" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Copy compiled Oxygen page content to post_content for search */ | |
| function sg_save_rendered_page_content( $meta_id, $object_id, $meta_key, $meta_value ) { | |
| // Debugging | |
| // $debug .= preg_replace( '#(\[/[^\]]+?\])#', "$1\n", $meta_value ); | |
| // file_put_contents( plugin_dir_path( __FILE__ ) . 'debug.html', $debug ); | |
| if ( 'ct_builder_shortcodes' != $meta_key ) return; | |
| // Don't try to render anything with inner content | |
| if ( false !== strpos( $meta_value, '[ct_inner_content' ) ) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://oxygenbuilder.com/documentation/troubleshooting/troubleshooting-guide/ | |
| https://oxygenbuilder.com/documentation/other/rebuilding-live-sites/ | |
| wp_ajax_oxygen_vsb_cache_generated | |
| update_option__oxygen_vsb_universal_css_url | |
| update_option__oxygen_vsb_css_files_state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('wplms_expired_course_button',function($button,$course_id){ | |
| if(is_user_logged_in()){ | |
| $user_id = get_current_user_id(); | |
| $course_status = bp_course_get_user_course_status($user_id,$course_id); | |
| if($course_status == 0){ //USer subscribed but not started | |
| $init=WPLMS_tips::init(); | |
| if(!empty($init->lms_settings['calculate_course_duration_from_start_course'])){ | |
| $expiry = bp_course_get_user_expiry_time($user_id,$course_id); | |
| if($expiry < time(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **//Duration on page assignment | |
| div#unit_content h3.assignment_heading strong:nth-last-of-type(1) span{display: none;} | |
| Assignment page *// | |
| .assignment_details .assignment_duration {display: none;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'thim_wrapper_loop_start', 'udemy_heading_title_courses', 6 ); | |
| function udemy_heading_title_courses() { | |
| if ( is_singular( 'lp_course' ) ) { | |
| ?> | |
| <div class="course-info-top"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="course-info-left col-sm-8"> | |
| <?php the_title( '<h1 class="entry-title" itemprop="name">', '</h1>' ); ?> | |
| <?php the_excerpt(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'bp_actions', 'bp_remove_profile_tabs', 99999 ); | |
| function bp_remove_profile_tabs() { | |
| if(!current_user_can('manage_options')){ | |
| global $bp; | |
| bp_core_remove_nav_item( 'buddydrive-2' ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table border="1" cellpadding="1" cellspacing="1" style="width:800px"> | |
| <tbody> | |
| <tr> | |
| <td style="text-align: center;"><span style="font-size:16px"><span style="font-family:Times New Roman,Times,serif"><strong>1 installment</strong></span></span></td> | |
| <td style="text-align: center;"><span style="font-size:16px"><span style="font-family:Times New Roman,Times,serif"><strong>3 installments</strong></span></span></td> | |
| <td style="text-align: center;"><span style="font-size:16px"><span style="font-family:Times New Roman,Times,serif"><strong>6 installments</strong></span></span></td> | |
| <td style="text-align: center;"><span style="font-size:16px"><span style="font-family:Times New Roman,Times,serif"><strong>12 installments</strong></span></span></td> | |
| </tr> | |
| <tr> | |
| <td>1,499 (upon enrollment)</td> |
NewerOlder