Skip to content

Instantly share code, notes, and snippets.

View kirillrocks's full-sized avatar

Kirill Lavrishev kirillrocks

View GitHub Profile
<?php
$image_width = 1980;
$image_height = 1080;
//Calculation:
$DPI = 180; // From admin
$MinimumPrintSize = 5; // From admin
$MaxPrintSize = Floor($image_width/$DPI);
$selected_package
<?php
/**
* Created by CODEJA.
* User: kirillrocks
* Date: 27-Aug-17
* Time: 15:12
*/
/** CONSTANTS FOR NORMAL PAPER **/
$selected_width = 5; // taken from selection by the user
<?php
/**
* Created by CODEJA.
* User: kirillrocks
* Date: 27-Aug-17
* Time: 15:12
*/
/** CONSTANTS NORMAL **/
$selected_width = 5; // taken from selection by the user
<?php
/**
* Created by CODEJA.
* User: kirillrocks
* Date: 27-Aug-17
* Time: 15:12
*/
/** CONSTANTS NORMAL **/
$selected_width = 5; // taken from selection by the user
add_action( 'wp_ajax_nopriv_cj_generate_reset_link', 'cj_generate_reset_link' );
function cj_generate_reset_link(){
if ( wp_verify_nonce( $_POST['nonce'], 'ajax-forgot-nonce' ) ) {
echo cj_retrieve_password($_POST['email']);
}
exit();
}
function cj_retrieve_password($user_login) {
global $wpdb, $wp_hasher;
#### Links ####
* wp-json/cjra/v1/posts
* wp-json/cjra/v1/videos
#### Arguments ####
* offset
* per_page (default 10)
* category (ID of categories for posts)
#### Links ####
* wp-json/cjra/v1/posts
* wp-json/cjra/v1/videos
#### Header ####
Authorization: DEVICE_ID
/**
* Adds Foo_Widget widget.
*/
class Brand_Data extends WP_Widget {
/**
* Register widget with WordPress.
*/
function __construct() {
parent::__construct(
<?php
// define( 'WP_DEBUG', true );
// define( 'WP_DEBUG_DISPLAY', true );
// @ini_set( 'display_errors', 'On' );
// @error_reporting('E_ALL');
/**
* Created by PhpStorm.
* User: KirillROCKS
* Date: 28-Sep-16