Credit card type | EBANX payment type code | Credit card numbers |
---|---|---|
American Express | amex |
378282246310005 or 371449635398431 |
Aura | aura |
5078601870000127985 or 5078601800003247449 |
Diners Club | diners |
30569309025904 or 38520000023237 |
Discover | discover |
6011111111111117 |
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
// Removes the Post Editor Toolbar | |
// found here http://stackoverflow.com/questions/36865699/wordpress-how-to-hide-toolbar-in-post-editor | |
if( get_post_type() == 'product' && is_admin() ) { | |
add_filter( 'admin_footer', 'custom_edit_page_js', 99); | |
} | |
function custom_edit_page_js(){ | |
echo '<style type="text/css"> a#content-tmce, a#content-tmce:hover, #qt_content_fullscreen{ display:none; } </style>'; | |
echo '<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#content-tmce").attr("onclick", null); }); </script>'; |
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 | |
// Usage: | |
// get_id_by_slug('page-slug'); | |
function get_id_by_slug($page_slug) { | |
$page = get_page_by_path($page_slug); | |
if ($page) { | |
return $page->ID; | |
} else { | |
return null; |
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 get_isotope_item( $query_args = array() ){ | |
$defaults = array( | |
'post_type' => 'post', | |
'posts_per_page' => -1, | |
'post_status' => 'publish', | |
); | |
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
opacity: .2; | |
filter: alpha(opacity=20); | |
filter: blur(4px); | |
-webkit-filter: blur(4px); | |
-moz-filter: blur(4px); | |
-o-filter: blur(4px); | |
-ms-filter: blur(4px); | |
filter: progid: DXImageTransform.Microsoft.blur(pixelradius=3) | |
Also (better) using backdrop-filter (https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter): |
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
/** | |
* Several functions relatting to blurring images on uploaded. | |
* @see https://codeable.io/community/how-to-watermark-wordpress-images-with-imagemagick/ | |
*/ | |
add_image_size( 'background-image-blurred', 1920, 1080, true ); | |
function generate_blurred_image( $meta ) { | |
$time = substr( $meta['file'], 0, 7); // Extract the date in form "2015/04" | |
$upload_dir = wp_upload_dir( $time ); // Get the "proper" upload dir |
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
/* | |
* Load More for Masonry modification | |
* | |
* Full post: | |
* http://www.billerickson.net/infinite-scroll-in-wordpress/ | |
* | |
*/ | |
jQuery(function($){ |
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
// Masonry Width Grids | |
$images = get_post_meta( get_the_ID(), 'masonry_image_grid', true ); | |
// Check if acf/custom field data exists | |
if( $images ) { ?> | |
<ul class="grid effect-4" id="grid"> | |
<?php foreach( $images as $image ) { ?> |
This is a demo of Justin Kwak's Article News Card that he posted on Dribbble.
Shot Link: https://dribbble.com/shots/2001637-Article-News-Card-UI?list=following&offset=5
A Pen by Virgil Pana on CodePen.