Skip to content
View seanlanglands's full-sized avatar
👋
👋

Block or report seanlanglands

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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';
    3
    
                  
    4
    $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">
  2. Determine whether the file is privat... Determine whether the file is private or public based on post meta value
    1
    <?php
    2
    add_filter( 'vip_files_acl_file_visibility', 'check_file_visibility_by_metadata', 11, 2 );
    3
    
                  
    4
    /**
    5
     * Given a path determine whether the file is private or public based on the
  3. Custom wp-sitemap routes and serve v... Custom wp-sitemap routes and serve via siteurl value
    1
    <?php
    2
    // Disable sitemap stylesheets if needed.
    3
    add_filter( 'wp_sitemaps_stylesheet_url', '__return_false' );
    4
    add_filter( 'wp_sitemaps_stylesheet_index_url', '__return_false');
    5
    
                  
  4. 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