Skip to content

Instantly share code, notes, and snippets.

View mahmutyukselmert's full-sized avatar
🎯
Focusing

Mahmut Yüksel Mert mahmutyukselmert

🎯
Focusing
View GitHub Profile
@mahmutyukselmert
mahmutyukselmert / functions.php
Created December 16, 2023 13:32
WordPress sistemlerinizde basit SMTP işlemleri için bile eklenti kullanıldığını gördüm, bu işlemleri aşağıdaki kod eklemeleri ile hızlı bir şekilde yapabilirsiniz.
//theme functions.php for STMP Code.
add_action( 'phpmailer_init', 'my_phpmailer_smtp' );
function my_phpmailer_smtp( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_server;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_username;
$phpmailer->Password = SMTP_password;
$phpmailer->SMTPSecure = SMTP_SECURE;
@mahmutyukselmert
mahmutyukselmert / countries.json
Last active January 31, 2023 12:32
Ülke kodlarını ve isimlerini içeren json. (Woocommerce kaynaklıdır.)
{
"AF": "Afganistan",
"AX": "Åland Adaları",
"DE": "Almanya",
"US": "Amerika Birleşik Devletleri (ABD)",
"UM": "Amerika Birleşik Devletleri (ABD) Küçük Dış Adaları",
"AS": "Amerikan Samoası",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->