Skip to content

Instantly share code, notes, and snippets.

View josanua's full-sized avatar
🎯
Focusing

Andrew josanua

🎯
Focusing
View GitHub Profile
@josanua
josanua / consola.txt
Last active January 23, 2026 06:59
Comenzi consola
===> Comenzi consola <===
// comenzi consola
https://ss64.com/osx/ //utils
// List of Command Line Commands
https://www.codecademy.com/article/command-line-commands
______________ work files ______________
-> Listarea Foldere-lor, files, work with files <-
@josanua
josanua / texte.txt
Last active December 18, 2018 14:17
texte standard
Contact form
Контактная форма
------------------------------
/ General messages/
"Check your inbox or spam folder to confirm your subscription."
- "Vă rugăm să verificați dosarul Inbox sau Spam pentru a vă confirma abonamentul."
@josanua
josanua / theme-helper.php
Last active September 18, 2025 08:55
Theme Dev Helper
<?php
// General info
https://codex.wordpress.org/Theme_Development
// Core info
https://wp-learner.com/wotdpress-development/wordpress-core-files-and-functions/
// Theme Handbook
https://developer.wordpress.org/themes/
@josanua
josanua / theme-helper.css
Last active January 25, 2024 23:54
Theme Helper CSS
/*
Theme Name (*): Name of the theme.
Theme URI: The URL of a public web page where users can find more information about the theme.
Author (*): The name of the individual or organization who developed the theme. Using the Theme Author’s wordpress.org username is recommended.
Author URI: The URL of the authoring individual or organization.
Description (*): A short description of the theme.
Version (*): The version, written in X.X or X.X.X format.
License (*): The license of the theme.
License URI (*): The URL of the theme license.
Text Domain (*): The string used for textdomain for translation.
@josanua
josanua / API-helper.php
Last active May 10, 2024 08:09
API Helper
<?php
// ------------- general info ------------- //
// HTTP
https://en.wikipedia.org/wiki/HTTP
// List of HTTP header fields
https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields
// Request methods
https://en.wikipedia.org/wiki/HTTP#Request_methods
@josanua
josanua / functions.php
Last active January 25, 2024 23:54
wp functions.php file
<?php
//--- Begin Standard Theme settings ---//
/**
* Test Theme functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Test_Theme
*/
@josanua
josanua / send_smtp_with_wpmail.php
Last active January 30, 2021 03:05 — forked from cabans/send_smtp_with_wpmail.php
Wordpress: Add SMTP settings to wp_mail()
// Action for change default system settings, it work's!
add_action('phpmailer_init','send_smtp_email');
function send_smtp_email( $phpmailer )
{
// Define that we are sending with SMTP
$phpmailer->isSMTP();
// The hostname of the mail server
@josanua
josanua / wp-settings.php
Last active January 25, 2024 23:54
wp-settings-helper
<?php
/************ Debugging ************/
https://codex.wordpress.org/Debugging_in_WordPress
// in wp-config file
define('WP_DEBUG', true); //Enabling WP_DEBUG will cause all PHP errors, notices and warnings to be displayed.
define('WP_DEBUG_DISPLAY', true); // This should be used in conjunction with WP_DEBUG_LOG so that errors can be reviewed later.
@josanua
josanua / gist:d1544752467c6f438fc041a630938278
Last active July 27, 2024 06:06 — forked from itsmattsoria/gistfil1.textile
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@josanua
josanua / class-wp-bootstrap-navwalker.php
Last active August 4, 2022 23:50
walker-bs4-class
<?php
// Documentation
https://codex.wordpress.org/Class_Reference/Walker
https://code.tutsplus.com/tutorials/understanding-the-walker-class--wp-25401
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-walker.php
https://www.smashingmagazine.com/2015/10/customize-tree-like-data-structures-wordpress-walker-class/#top
Instructions https://github.com/wp-bootstrap/wp-bootstrap-navwalker