Skip to content

Instantly share code, notes, and snippets.

View marcofrasson's full-sized avatar

Marco Frasson marcofrasson

View GitHub Profile
@thiagosf
thiagosf / svn-wp-plugin.md
Last active July 10, 2019 17:55
Procedimento para atualizar repositório SVN com plugin WordPress

Procedimento para atualizar repositório SVN com plugin WordPress

Os comandos abaixo foram utilizados no Ubuntu. Todas informações abaixo foram retiradas do site oficial do WordPress https://wordpress.org/plugins/about/svn/

Puxe as atualizações do repositório remoto

svn up

Adicione ou altere os arquivos dentro do diretório trunk

@claudiosanches
claudiosanches / add-to-cart.php
Last active October 18, 2023 14:02
WooCommerce - Template add-to-cart.php with quantity and Ajax!
<?php
/**
* Custom Loop Add to Cart.
*
* Template with quantity and ajax.
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
global $product;
<?php
/*
Description: Adds a taxonomy filter in the admin list page for a custom post type.
Written for: http://wordpress.stackexchange.com/posts/582/
By: Mike Schinkel - http://mikeschinkel.com/custom-workpress-plugins
Instructions: Put this code in your theme's functions.php file or inside your own plugin. Edit to suite your post types and taxonomies. Hope this helps...
*/
add_filter('manage_listing_posts_columns', 'add_businesses_column_to_listing_list');
function add_businesses_column_to_listing_list( $posts_columns ) {
if (!isset($posts_columns['author'])) {