https://www.facebook.com/sharer/sharer.php?u={{URL}}
https://twitter.com/share?url={{URL}}&text={{CONTENT}}
https://www.linkedin.com/sharing/share-offsite/?url={{URL}}
// see https://carbonfields.net/docs/fields-select/ | |
Field::make( 'select', 'crb_content_align', 'Text alignment' ) | |
->add_options( 'emrezavarcbrgist2317' ) | |
// see https://secure.php.net/manual/en/language.types.callable.php | |
function emrezavarcbrgist2317() { | |
// see https://developer.wordpress.org/reference/functions/get_categories/ | |
$terms = get_categories( array( | |
'fields' => 'id=>name' | |
) ); |
<?php | |
/* | |
Plugin Name: WP Gotta Go Fast | |
Plugin URI: https://dude.fi | |
Description: Gotta Go Fast | |
Author: Timi Wahalahti | |
Version: 0.1.0 | |
Author URI: https://sipp.is | |
Text Domain: wp-gotta-go-fast | |
*/ |
<div class="background-image preview lazyload" style="background-image: url('https://cdn.ark.fi/20191106161432/nattours_studio-puisto_photos-decopic-1.jpg');" data-src="https://cdn.ark.fi/20191106161432/nattours_studio-puisto_photos-decopic-1.jpg" data-src-mobile="https://cdn.ark.fi/20191106161432/nattours_studio-puisto_photos-decopic-1.jpg"></div> | |
<div class="background-image full-image reveal" style="background-image: url('https://cdn.ark.fi/20191106161432/nattours_studio-puisto_photos-decopic-1.jpg');"></div> | |
<noscript><div class="background-image full-image" style="background-image: url('https://cdn.ark.fi/20191106161432/nattours_studio-puisto_photos-decopic-1.jpg');"></div></noscript> |
<?php | |
if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) { | |
$current_site = new stdClass; | |
$current_site->id = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1; | |
$current_site->domain = $domain = DOMAIN_CURRENT_SITE; | |
$current_site->path = $path = PATH_CURRENT_SITE; | |
if ( defined( 'BLOG_ID_CURRENT_SITE' ) ) { | |
$current_site->blog_id = BLOG_ID_CURRENT_SITE; |
<?php | |
add_filter( 'bp_get_template_part', 'sippis_short_circuit_activity_post_form', 10, 3 ); | |
function sippis_short_circuit_activity_post_form( $templates, $slug, $name ) { | |
if ( 'activity/post-form' === $slug ) { | |
return false; | |
} | |
return $templates; | |
} // end sippis_short_circuit_activity_post_form |
javascript:(function() { | |
function parseDate(dateStr) { | |
const [day, month, year] = dateStr.trim().split('.').map(Number); | |
return new Date(year, month - 1, day); | |
} | |
function getElementTextContent(element, selector) { | |
const el = element.querySelector(selector); | |
return el ? el.textContent.trim() : ''; | |
} |
{ | |
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
"meta": { | |
"title": "EM Test", | |
"description": "EM Test.", | |
"author": "sippis", | |
"categories": [] | |
}, | |
"login": true, | |
"siteOptions": { |