👋
Husband / Dad + Creative designer and ambitious web developer currently working with a distributed team at @WordPressVIP and @Automattic
-
Made by Creative
- British Columbia, Canada
- https://madebycreative.com
- @seanlanglands
Pinned Loading
-
Example block pattern that's based o...
Example block pattern that's based on a cover block featuring move and remove locking attributes. 1<?php
2$default_attachment_url = get_stylesheet_directory_uri() . '/assets/images/default-cover-bg.jpg';
34$block_pattern_content = '<!-- wp:cover {"url":"' . esc_url( $default_attachment_url ) . '","id":42,"dimRatio":90,"minHeight":0,"minHeightUnit":"px","gradient":"vivid-cyan-blue-to-vivid-purple","align":"full","style":{"spacing":{"padding":{"top":"5rem","right":"14rem","bottom":"5rem","left":"14rem"}}}} -->
5<div class="wp-block-cover alignfull" style="padding-top:5rem;padding-right:14rem;padding-bottom:5rem;padding-left:14rem;min-height:0px">
-
Determine whether the file is privat...
Determine whether the file is private or public based on post meta value 1<?php
2add_filter( 'vip_files_acl_file_visibility', 'check_file_visibility_by_metadata', 11, 2 );
34/**
5* Given a path determine whether the file is private or public based on the
-
Custom wp-sitemap routes and serve v...
Custom wp-sitemap routes and serve via siteurl value 1<?php
2// Disable sitemap stylesheets if needed.
3add_filter( 'wp_sitemaps_stylesheet_url', '__return_false' );
4add_filter( 'wp_sitemaps_stylesheet_index_url', '__return_false');
5 -
Custom WP-CLI command to import a CS...
Custom WP-CLI command to import a CSV file into a post type 1<?php
2/**
3* ExamplePackage\CLI_Import_CSV Class.
4*
5* @package ExamplePackage
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.