Making WordPress.org


Ignore:
Timestamp:
02/24/2018 01:26:54 AM (6 years ago)
Author:
obenland
Message:

Main: Add Open Graph meta data for about pages

Props ocean90, bridgetwillard, claudiud, danieltj, ericsherred, harryjackson1221, jenblogs4u, tokyobiyori, softservenet, benhuberman.
See #3046.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-swag.php

    r6653 r6732  
    1313    return get_template_part( 'page' );
    1414}
     15
     16add_filter( 'jetpack_open_graph_tags', function( $tags ) {
     17    $tags['og:title']            = _esc_html__( 'WordPress Swag', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'Show your WordPress pride and run with the coolest swag! You’ll be surprised how widely recognized our logo is around the world, bringing people together through recognition and community. Choose your WordPress swag today (Wapuu t-shirt, anyone?) and your purchase will also support free swag at WordCamps and meetups.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
Note: See TracChangeset for help on using the changeset viewer.