See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| // If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
| Facebook = { | |
| config: { | |
| actionDelay: 1000, | |
| scrollDelay: 5000, | |
| // set to -1 for no limit | |
| maxRequestsToAccept: -1, | |
| totalRequestsAccepted: 0, | |
| // set string to be present in names to be accepted, leave empty to accept all |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| /** | |
| * Command line | |
| * | |
| * @source https://git.pub/snippets/4 | |
| */ | |
| for id in $(wp post list --post_type=my_post_type --fields=ID --format=ids); do wp post update $id --post_title="Page Number $id"; done |
| add_action( 'woocommerce_cart_loaded_from_session', 'wpm_cart_order_items_by_price' ); | |
| function wpm_cart_order_items_by_price( $cart ) { | |
| //if the cart is empty do nothing | |
| if ( empty( $cart->cart_contents ) ) { | |
| return; | |
| } | |
| //this is an array to collect cart items |
| <?php | |
| // PHP memory limit for this site | |
| define( 'WP_MEMORY_LIMIT', '128M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
| // Database | |
| define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
| define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
| // Explicitely setting url |