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
<? | |
/** | |
* Getting Started | |
* "Gutenberg" is a codename for a whole new paradigm in WordPress site building and publishing | |
* Official repository https://github.com/WordPress/gutenberg | |
*/ | |
// Getting Started with editor UI | |
https://wordpress.org/support/article/wordpress-editor/ |
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 | |
/** | |
* @param WP_Query|null $wp_query | |
* @param bool $echo | |
* | |
* @return string | |
* Accepts a WP_Query instance to build pagination (for custom wp_query()), | |
* or nothing to use the current global $wp_query (eg: taxonomy term page) | |
* - Tested on WP 4.9.5 | |
* - Tested with Bootstrap 4.1 |
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 | |
/** | |
* @param WP_Query|null $wp_query | |
* @param bool $echo | |
* @param array $params | |
* | |
* @return string|null | |
* | |
* Accepts a WP_Query instance to build pagination (for custom wp_query()), | |
* or nothing to use the current global $wp_query (eg: taxonomy term page) |
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 | |
// FTP login details | |
$ftp_server = 'yourserver.com'; | |
$ftp_server_path = '/public_html/'; | |
$ftp_user_name = 'username'; | |
$ftp_user_pass = 'password'; | |
// Connect to the FTP | |
$conn_id = ftp_connect($ftp_server); | |
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); |
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
<? | |
$ftp_server = "ftp.domainname.com"; | |
$ftp_user_name = "ftp_username"; | |
$ftp_user_pass = "ftp_password"; | |
$ftp_directory = 'path/to/folder/'; // leave blank | |
$ftp_source_file_name = "data.xml"; | |
$ftp_dest_file_name = $ftp_source_file_name; | |
if( ftp_file( $ftp_server, $ftp_user_name, $ftp_user_pass, $ftp_source_file_name, $ftp_directory, $ftp_dest_file_name) ){ | |
echo "Success: FTP'd data\n"; |
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
// Contact Form 7 for pipes USA states list select | |
"Alabama|AL" | |
"Alaska|AK" | |
"Arizona|AZ" | |
"Arkansas|AR" | |
"California|CA" | |
"Colorado|CO" | |
"Connecticut|CT" | |
"Delaware|DE" | |
"District of Columbia|DC" |
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
https://sass-lang.com/guide | |
https://sass-scss.ru/guide/ | |
/*** Setup watcher in IDE ***/ | |
/usr/local/bin/scss | |
--no-cache | |
--update | |
--sourcemap=none | |
$FileName$:$ProjectFileDir$/css/$FileNameWithoutExtension$.css |
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
// Books to read | |
https://exploringjs.com/impatient-js/ | |
// Defines that JavaScript code should be executed in "strict mode". | |
'use strict'; | |
// Need to study, in order: | |
https://www.digitalocean.com/community/tutorials/understanding-variables-scope-hoisting-in-javascript | |
https://www.digitalocean.com/community/tutorials/understanding-syntax-and-code-structure-in-javascript |
NewerOlder