Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ömer Faruk ofyalcin

🎯
Focusing
Block or report user

Report or block ofyalcin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ofyalcin
ofyalcin / index.html
Last active Oct 20, 2019
Open Bootstrap tabs & pills tabs from another page (hash anchor)
View index.html
<!doctype html>
<html>
<head>
</head>
<body>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
</li>
@ofyalcin
ofyalcin / functions.php
Last active Aug 10, 2019
Wordpress: How to save custom taxonomy terms in json when a post saved.
View functions.php
// Add this code to bottom line of your active theme functions.php file.
function export_custom_terms_in_json () {
// get all terms of custom_taxonomy
$CustomTaxTerms = get_terms( 'custom_taxonomy', array( 'orderby'=>'count', 'hide_empty' => 0 ) );
if( ! is_wp_error( $CustomTaxTerms ) ) {
// encode term list
@ofyalcin
ofyalcin / add-several-term-meta-fields-to-custom-taxonomy.php A variation on the previous gists, this time we add *several* term meta fields
View add-several-term-meta-fields-to-custom-taxonomy.php
<?php
// source: http://wordpress.stackexchange.com/questions/211703/need-a-simple-but-complete-example-of-adding-metabox-to-taxonomy
// original code authored by jgraup - http://wordpress.stackexchange.com/users/84219/jgraup
/*
* NOTE:
* We are registering the fields for a custom taxonomy, called "user-logement".
*/
View dimox_breadcrumbs.php
<?php
/*
* WordPress Breadcrumbs
* author: Dimox
* version: 2019.03.03
* license: MIT
*/
function dimox_breadcrumbs() {
/* === OPTIONS === */
@ofyalcin
ofyalcin / digitalocean.md
Last active Apr 22, 2019
Earn Free $150 DigitalOcean Credit
View digitalocean.md

DigitalOcean Coupon Code.md

Hi everyone.

Today I will show you how to earn $100+$50 free credit for digitalocean.

Lets start.

Dont forget, you must have a new account on digitalocean for earn $150 coupon code.

View rrdirect.txt
RewriteEngine on
RewriteRule ^(.*)$ http://yenialanadi.com/$1 [R=301,L]
@ofyalcin
ofyalcin / phpMyAdmin.sql
Last active Oct 22, 2018
phpMyAdmin/MySQL kullanarak Wordpress kullanıcı şifresini değiştirme https://blogkurdu.net/phpmyadmin-mysql-kullanarak-wordpress-kullanici-sifresini-degistirme
View phpMyAdmin.sql
UPDATE `wp_users` SET `user_pass`= MD5('yenişifrenizburaya') WHERE `user_login`='deneme';
View FontAwesome 5 Free JSON Cheatsheet
{
"fab fa-buromobelexperte": "&#xf37f; B\u00fcrom\u00f6bel-Experte GmbH & Co. KG. brands",
"fas fa-burn": "&#xf46a; Burn solid",
"fas fa-bullseye": "&#xf140; Bullseye solid",
"fas fa-bullhorn": "&#xf0a1; bullhorn solid",
"fas fa-building": "&#xf1ad; Building solid",
"far fa-building": "&#xf1ad; Building regular",
"fas fa-bug": "&#xf188; Bug solid",
"fab fa-btc": "&#xf15a; BTC brands",
"fas fa-briefcase-medical": "&#xf469; Medical Briefcase solid",
View redirects.txt
default,https://blogkurdu.net/tavsiyelerim
do,https://m.do.co/c/fe093887434f
deneme,https://wordpresshizmetleri.net/ben-kimim
digerlink,https://google.com
View index.php
<?php
$id = isset( $_GET['id'] ) ? rtrim( trim( $_GET['id'] ), '/' ) : 'default';
$f = fopen( 'redirects.txt', 'r' );
$urls = array();
if ( !$f ) {
echo 'Yönlendirmeler için bir txt dosyası oluşturduğunuzdan emin olun.';
die;
}
You can’t perform that action at this time.