Skip to content

Instantly share code, notes, and snippets.

@Webcreations907
Webcreations907 / field_typography.php
Last active August 29, 2015 14:05
Redux Typograpy Field
<?php
/**
* Class and Function List:
* Function list:
* - __construct()
* - render()
* - enqueue()
* - makeGoogleWebfontLink()
* - makeGoogleWebfontString()
@Webcreations907
Webcreations907 / field_spacing.php
Last active August 29, 2015 14:06
solution for spacing field printing out 0's when nothing entered
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'ReduxFramework_spacing' ) ) {
class ReduxFramework_spacing {
@Webcreations907
Webcreations907 / extension_metaboxes.php
Last active May 23, 2020 22:46
url_to_postid function. Updated to work on custom post types and permalink structure. Still must have query_var set to false when registering cusotm post types.
/* Post URLs to IDs function, supports custom post types - borrowed and modified from url_to_postid() in wp-includes/rewrite.php */
// Taken from http://betterwp.net/wordpress-tips/url_to_postid-for-custom-post-types/
// Customized to work with non-rewrite URLs
// Copyright Dovy Paukstys (@dovy) of Redux Framework
function url_to_postid( $url ) {
global $wp_rewrite;
if ( ! empty( $this->post_id ) ) {
return $this->post_id;
}
@Webcreations907
Webcreations907 / example.php
Last active June 8, 2022 13:19
Example VC Nesting
<?php
/************************************************************************
* Example Nested For VC
* vc_map() stuff should only be included when VC is enabled.
*
* This is just for a copy/paste test purpose.
*************************************************************************/

Envato Old Forum Style Userscript

Changes Envato forum to display avatars and user badges using userscript.

Features
  • Avatars on Forum & Topic View 80x80
  • User Badges on Topic View
  • QuickLinks (mouseover avatar) Topic View
  • Username Clickable to Marketplace Portfolio