This file contains 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 | |
namespace App; | |
class CustomTab extends \Give\DonorDashboards\Tabs\Contracts\Tab | |
{ | |
public static function id() { | |
return 'custom-tab'; | |
} |
This file contains 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 | |
global $wpdb; | |
return " | |
SELECT | |
ShopOrder.ID as order_id, | |
ShopOrder.post_parent as parent_id, | |
ShopOrder.post_date, | |
ShopOrder.post_status, |
This file contains 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
/* Generated using ChatGPT | |
const jsCode = ` | |
function exampleFunction() { | |
// Some code here | |
} | |
const translatedText = __("Hello, world!"); | |
const translatedText2 = _x("Hello", "Greeting"); | |
const translatedText3 = _n("One item", "%d items", 5); |
This file contains 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
// `\b`: Word Boundary | |
\b(ray\(.*\)); |
This file contains 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
commit 60aa88243a93dda825b2fbb78e8ffca4191b8c76 | |
Author: Jörn Lund <[email protected]> | |
Date: Wed Nov 13 17:10:34 2013 +0100 | |
Make CSV format filterable | |
Added filters `ninja_forms_csv_bom`, `ninja_forms_csv_delimiter`, `ninja_forms_csv_enclosure` and `ninja_forms_csv_terminator`. | |
diff --git a/includes/admin/export-subs.php b/includes/admin/export-subs.php | |
index fec5ec95..ee5a3723 100644 |
This file contains 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
'give_fields_before_donation_levels', | |
'give_fields_after_donation_amount', | |
'give_fields_after_donation_levels', | |
'give_fields_payment_mode_top', | |
'give_fields_payment_mode_before_gateways', | |
'give_fields_payment_mode_after_gateways', | |
'give_fields_payment_mode_after_gateways_wrap', | |
'give_fields_payment_mode_bottom', | |
'give_fields_donation_form', | |
'give_fields_purchase_form_top', |
This file contains 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
# /etc/apache2/sites-available/wordpress.test.conf | |
<VirtualHost *:443> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. |
This file contains 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
function wordpress() { | |
cd ~/WordPress | |
} | |
function wpdebug() { | |
pwd=$PWD | |
cd ~/WordPress | |
wp config set WP_DEBUG $1 --raw | |
cd "$pwd" | |
} |
This file contains 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
function wpx { | |
export XDEBUG_CONFIG="idekey=WPCLIDEBUG remote_connect_back=1" | |
wp "$@" | |
unset XDEBUG_CONFIG | |
}; |
This file contains 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 | |
// Formatted string. | |
echo sprintf( 'This is a known %s being translated.', __( 'Translated String' ) ); | |
// Interpolation | |
extract([ | |
'string' => __( 'Translated String' ) | |
]); | |
echo "This is a user provided ${string}"; |
NewerOlder