Skip to content

Instantly share code, notes, and snippets.

View matheusgimenez's full-sized avatar

Matheus Gimenez Petroni matheusgimenez

View GitHub Profile
a:8:{i:0;a:8:{s:4:"name";s:9:"Service 1";s:11:"description";s:15:"test this thing";s:4:"type";s:6:"select";s:8:"position";i:0;s:7:"options";a:3:{i:0;a:5:{s:5:"label";s:9:"Service 1";s:5:"price";s:0:"";s:3:"min";s:0:"";s:3:"max";s:0:"";s:8:"duration";s:0:"";}i:1;a:5:{s:5:"label";s:9:"Service 2";s:5:"price";s:0:"";s:3:"min";s:0:"";s:3:"max";s:0:"";s:8:"duration";s:0:"";}i:2;a:5:{s:5:"label";s:9:"Service 3";s:5:"price";s:0:"";s:3:"min";s:0:"";s:3:"max";s:0:"";s:8:"duration";s:0:"";}}s:8:"required";i:1;s:34:"wc_appointment_hide_duration_label";i:0;s:31:"wc_appointment_hide_price_label";i:0;}i:1;a:8:{s:4:"name";s:8:"Option 1";s:11:"description";s:0:"";s:4:"type";s:11:"radiobutton";s:8:"position";i:1;s:7:"options";a:1:{i:0;a:5:{s:5:"label";s:15:"Add gel removal";s:5:"price";s:2:"10";s:3:"min";s:0:"";s:3:"max";s:0:"";s:8:"duration";s:0:"";}}s:8:"required";i:0;s:34:"wc_appointment_hide_duration_label";i:0;s:31:"wc_appointment_hide_price_label";i:0;}i:2;a:8:{s:4:"name";s:9:"Service 2";s:11:"description";s:0:"";s:4:"ty
<?php
/**
* As configurações básicas do WordPress.
*
* Esse arquivo contém as seguintes configurações: configurações de MySQL, Prefixo de Tabelas,
* Chaves secretas, Idioma do WordPress, e ABSPATH. Você pode encontrar mais informações
* visitando {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. Você pode obter as configurações de MySQL de seu servidor de hospedagem.
*
* Esse arquivo é usado pelo script ed criação wp-config.php durante a
function cart_redirect() {
if ( is_cart() ) {
wp_redirect( WC()->cart->get_checkout_url() );
}
}
add_action( 'init', 'cart_redirect', 9999 );
Para utilizar o plugin faça o download pelo painel do WordPress ou faça upload por FTP na pasta wp-content/themes/. Depois, ative-o.
Quando o plugin estiver ativado verifique se o tema já está na pasta wp-content/themes/. O nome da pasta do tema precisa ser igual ao endereço no GitHub. Exemplo:
Link do GitHub: http://github.com/wpbrasil/odin/, nesse caso, o nome da pasta seria odin.
Depois de verificado esses passos, vá até o seu repositório no GitHub, depois, entre na página de Settings do repositório, dentro dessa página, clique no link Webhooks & services.
Dentro dessa página, clique em Add webhook. Uma caixa de confirmação de senha irá abrir, confirme e um formulário vai aparecer:
Em Payload URL preencha com:
http://ENDERECO_DO_SITE/wp-admin/admin-ajax.php?action=brasa_deploy
<?php
echo odin_pagination( 2, 1, false, $variavel_com_o_query );
?>
{
"E1 *": {
"price": "5",
"text": "Entregamos na sua região Quarta-feira as 14hrs"
},
"E2 *": "5",
}
{
"E1 *": "5",
"E2 *": "5",
}
{
// Copy any modified settings to `User/Emmet.sublime-settings`
// otherwise modifications will not survive updates.
// Path to folder where Emmet should look for extensions
// http://docs.emmet.io/customization/
"extensions_path": "~/emmet",
// Disable completions of HTML attributes
// with this option disabled, you can get attribute list completions
<?php
/**
* The sidebar containing the secondary widget area, displays on homepage, archives and posts.
*
* If no active widgets in this sidebar, it will shows Recent Posts, Archives and Tag Cloud widgets.
*
* @package Odin
* @since 2.2.0
*/
?>
<?php
/**
* The sidebar containing the secondary widget area, displays on homepage, archives and posts.
*
* If no active widgets in this sidebar, it will shows Recent Posts, Archives and Tag Cloud widgets.
*
* @package Odin
* @since 2.2.0
*/
?>