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 | |
add_filter( 'pre_http_request', 'arunas_proxy_wporg', 1, 3 ); | |
function arunas_proxy_wporg( $response, $parsed_args, $url ) { | |
if ( 1 === preg_match( '|^https?://api.wordpress.org|ims', $url ) ) { | |
$url = preg_replace( '|^https?://api.wordpress.org|ims', 'http://localhost:10159', $url ); | |
$response = wp_remote_request( $url, $parsed_args ); | |
} | |
return $response; | |
} |
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 | |
/* | |
* Plugin Name: Arunas' No Prefix for CPT | |
* Version: 1.0.0 | |
* Description: Remove prefix from CPT URL | |
* Plugin URI: https://gist.github.com/ideag/60d4b1e6185e62fa9a903bcf600f8a95 | |
* Author: Arūnas Liuiza | |
* Author URI: https://www.arunas.co/ | |
*/ |
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 | |
/** | |
* Plugin Name: Hello VDU | |
* Author: Arūnas Liuiza [KAYAK] | |
* Version: 0.1.0 | |
* Text Domain: hello-vdu | |
*/ | |
add_action( 'plugins_loaded', 'hello_vdu' ); |
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 | |
/** | |
* Plugin Name: FontAwesome | |
* Version: 0.1.0 | |
*/ | |
// If this file is called directly, abort. | |
if ( ! defined( 'WPINC' ) ) { | |
die; | |
} |
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 | |
/** | |
* Plugin Name: FontAwesome | |
* Version: 0.1.0 | |
*/ | |
// If this file is called directly, abort. | |
if ( ! defined( 'WPINC' ) ) { | |
die; | |
} |
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 | |
/** | |
* Plugin Name: TinyTemplate | |
* Version: 0.1.0 | |
*/ | |
// If this file is called directly, abort. | |
if ( ! defined( 'WPINC' ) ) { | |
die; | |
} |
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 | |
/** | |
* Plugin Name: CodeAcademy Pageviews | |
* Author: Arūnas Liuiza | |
* Version: 0.3.0 | |
* | |
* @package CA_Pageview | |
* @version 0.3.0 | |
*/ |
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 | |
/** | |
* Lietuviškų vardų linksniai. | |
* | |
* @author Maug Lee <[email protected]> | |
* @copyright Copyleft (ↄ) 2011, Maug Lee | |
* @version 0.3 | |
* @package Vardai | |
*/ |
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
jQuery.ajaxSetup({async:false}); | |
jQuery.each(jQuery('.namesList ul>li a'),function(no,link){ | |
var name = jQuery(link).text().normalize('NFD').replace(/[\u0300-\u0303]/g, "").normalize('NFC'); | |
jQuery.get( | |
'https://api.aru.lt/json/names/v1/'+name, {'v':2} | |
); | |
console.log(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
jQuery('.theme .url').each(function(){ | |
var slug = jQuery(this).prop('href'); | |
slug = slug.replace( 'https://wordpress.org/themes/', '' ); | |
slug = slug.replace( '/', '' ); | |
var pot = 'https://translate.wordpress.org/projects/wp-themes/'+slug+'/lt/default/export-translations'; | |
// window.location = pot; | |
console.log(pot); | |
}); |
NewerOlder