Skip to content

Instantly share code, notes, and snippets.

@HoldOffHunger
HoldOffHunger / bradvin.social.share.urls.txt
Last active October 19, 2024 18:33
Social Share URL's (Summary)
https://www.facebook.com/sharer.php?u={url}
https://www.facebook.com/dialog/share?app_id={app_id}&display={page_type}&href={url}&redirect_uri={redirect_url}
https://reddit.com/submit?url={url}&title={title}
https://twitter.com/intent/tweet?url={url}&text={title}&via={user_id}&hashtags={hash_tags}
https://www.linkedin.com/sharing/share-offsite/?url={url}
https://api.whatsapp.com/send?phone={phone_number}&text={title}%20{url}
https://www.tumblr.com/widgets/share/tool?canonicalUrl={url}&title={title}&caption={text}&tags={hash_tags}
http://pinterest.com/pin/create/button/?url={url}
https://www.blogger.com/blog-this.g?u={url}&n={title}&t={text}
https://www.evernote.com/clip.action?url={url}&title={title}
@vaughnroyko
vaughnroyko / functions.php
Last active June 23, 2017 20:25
Advanced/Basic Menu & Workflow for Wordpress Admin
<?php
//Add in a customized Wordpress admin workflow for a simplified experience
function edit_admin_menus() {
//Set this as what ever you want the default admin landing page to be
$redirect = 'edit.php?post_type=page'; //Pages
$defaultURL = get_option( 'siteurl' ) . '/wp-admin/' . $redirect;
//Add/remove cookies/redirects
@nikoheikkila
nikoheikkila / twitch_check.php
Last active December 4, 2020 07:17
PHP: Check from Twitch.tv APIv3 if channel is live
<?php
/**
* Use Twitch.tv API v3 to check if the specified channel has stream going on
*
* @author Niko Heikkilä, 2014
* @param STRING $channel Representing the channel/account name
* @return BOOL TRUE if online, FALSE if offline
*/