This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service android:name="com.example.app.backgroundService" | |
android:exported="false"> | |
<intent-filter> | |
<action android:name="com.example.app.START_BACKGROUND" /> | |
</intent-filter> | |
</service> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${result['color 5'] ? | |
`<div class="color" style=background-color:#${result['color 5']}><h6>${result['color 5']}</h6></div>` | |
: ''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class My_Custom_My_Account_Endpoint { | |
/** | |
* Custom endpoint name. | |
* | |
* @var string | |
*/ | |
public static $endpoint = 'my-custom-endpoint'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Function to change sender name | |
function wpb_sender_name( $original_email_from ) { | |
return 'Nome da empresa, marca ou site'; | |
} | |
add_filter( 'wp_mail_from_name', 'wpb_sender_name' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------- Adds custom fields using filters. ------ | |
The below custom fields shows various types one can use. | |
It is then displayed in the backend Order Details page and in admin and customer e-mails. | |
Checkboxes by default result only show the number 1 when clicked. I have added code so that when the a checkbox is clicked it will | |
show text such as On and Yes. Checkbox is also pre-selected. | |
Tutorial: https://easywebdesigntutorials.com/woocommerce-modifying-the-checkout-page/ | |
*/ | |
// Initial inspiration: https://businessbloomer.com/woocommerce-add-shipping-phone-checkout/ | |
// My Custom Fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* TESTAR CRON JOBS */ | |
error_log("Ainda estou aqui 2"); | |
// CRIAR OS INTERVALOS | |
function diogenes_cron_schedules($schedules){ | |
if(!isset($schedules["5min"])){ | |
$schedules["5min"] = array( | |
'interval' => 5*60, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[formulario_avaliacao formulario="IDFORMULARIO"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[listar_imoveis categoria="duplex"] | |
ou | |
[listar_imoveis categoria="NOME DA CATEGORIA"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LISTAR IMOVEIS LANÇAMENTOS | |
[listar_imoveis_lancamentos] | |
// LISTAR GALERIA DE IMAGENS DO DETALHE DO IMÓVEL COM LIGHTBOX | |
[infos_imovel_vista_galeria_lightbox cod="CODIMOVEL"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"imovel_Id": 5119129, | |
"imovelSan_Id": 166648, | |
"valorImovelFormat": "R$ 0,00", | |
"valorIPTU": 0, | |
"parcelaIPTU": 0, | |
"isentoIptu": true, | |
"valorIptuFormat": "R$ 0,00", | |
"valorCondominioFormat": "R$ 600,00", | |
"descricao": null, | |
"descricaoAl": null, |