Forked from ipokkel/change-add-paypal-express.php
Last active
September 26, 2023 17:23
-
-
Save michaelbeil/8e34ef00844c5690287140a32cdd452b to your computer and use it in GitHub Desktop.
Revisions
-
michaelbeil revised this gist
Sep 26, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ <?php /** * This recipe changes text for add paypal express to checkout * * You can add this recipe to your site by creating a custom plugin * or using the Code Snippets plugin available for free in the WordPress repository. -
michaelbeil revised this gist
Sep 26, 2023 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,24 +1,24 @@ <?php /** * This recipe removes the "Join Now" registration link on the login page. * * You can add this recipe to your site by creating a custom plugin * or using the Code Snippets plugin available for free in the WordPress repository. * Read this companion article for step-by-step directions on either method. * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function change_text_for_add_paypal_express( $translated, $text, $domain ) { switch ( $domain ) { case 'pmpro-add-paypal-express': switch ( $text ) { case 'Check Out with a Credit Card Here': $translated = __( 'Credit Card', 'pmpro-add-paypal-express' ); break; case 'Check Out with PayPal': $translated = __( 'PayPal', 'pmpro-add-paypal-express' ); break; } break; -
ipokkel revised this gist
Jul 14, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,16 +9,16 @@ function change_text_for_add_paypal_express( $translated, $text, $domain ) { case 'pmpro-add-paypal-express': switch ( $text ) { case 'Choose Your Payment Method': $translated = __( 'Your translation here', 'pmpro-add-paypal-express' ); break; case 'Check Out with a Credit Card Here': $translated = __( 'Your translation here', 'pmpro-add-paypal-express' ); break; case 'Check Out with PayPal': $translated = __( 'Your translation here', 'pmpro-add-paypal-express' ); break; case 'Pay by Check': $translated = __( 'Your translation here', 'pmpro-add-paypal-express' ); break; } break; -
ipokkel revised this gist
Jul 14, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,16 +9,16 @@ function change_text_for_add_paypal_express( $translated, $text, $domain ) { case 'pmpro-add-paypal-express': switch ( $text ) { case 'Choose Your Payment Method': $translated = __( 'Choose Your Payment Method', 'pmpro-add-paypal-express' ); break; case 'Check Out with a Credit Card Here': $translated = __( 'Check Out with a Credit Card Here', 'pmpro-add-paypal-express' ); break; case 'Check Out with PayPal': $translated = __( 'Check Out with PayPal', 'pmpro-add-paypal-express' ); break; case 'Pay by Check': $translated = __( 'Pay by Check', 'pmpro-add-paypal-express' ); break; } break; -
ipokkel revised this gist
Jul 14, 2021 . 1 changed file with 19 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,20 +4,25 @@ /** * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function change_text_for_add_paypal_express( $translated, $text, $domain ) { switch ( $domain ) { case 'pmpro-add-paypal-express': switch ( $text ) { case 'Choose Your Payment Method': $translated_text = __( 'Choose Your Payment Method', 'pmpro-add-paypal-express' ); break; case 'Check Out with a Credit Card Here': $translated_text = __( 'Check Out with a Credit Card Here', 'pmpro-add-paypal-express' ); break; case 'Check Out with PayPal': $translated_text = __( 'Check Out with PayPal', 'pmpro-add-paypal-express' ); break; case 'Pay by Check': $translated_text = __( 'Pay by Check', 'pmpro-add-paypal-express' ); break; } break; } return $translated; } add_filter( 'gettext', 'change_text_for_add_paypal_express', 10, 3 ); -
ipokkel revised this gist
Jul 14, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,16 +7,16 @@ function change_text_for_add_paypal_express( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Choose Your Payment Method': $translated_text = __( 'Choose Your Payment Method', 'pmpro-add-paypal-express' ); break; case 'Check Out with a Credit Card Here': $translated_text = __( 'Check Out with a Credit Card Here', 'pmpro-add-paypal-express' ); break; case 'Check Out with PayPal': $translated_text = __( 'Check Out with PayPal', 'pmpro-add-paypal-express' ); break; case 'Pay by Check': $translated_text = __( 'Pay by Check', 'pmpro-add-paypal-express' ); break; } return $translated_text; -
ipokkel created this gist
Oct 15, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <?php // Add this code below to your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ add_filter( 'gettext', 'change_text_for_add_paypal_express', 20, 3 ); /** * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function change_text_for_add_paypal_express( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Choose Your Payment Method': $translated_text = __( 'Choose Your Payment Method', 'pmpro' ); break; case 'Check Out with a Credit Card Here': $translated_text = __( 'Check Out with a Credit Card Here', 'pmpro' ); break; case 'Check Out with PayPal': $translated_text = __( 'Check Out with PayPal', 'pmpro' ); break; case 'Pay by Check': $translated_text = __( 'Pay by Check', 'pmpropbc' ); break; } return $translated_text; }