Skip to content

Instantly share code, notes, and snippets.


Ömer Faruk ofyalcin

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 / index.html
Last active Oct 20, 2019
Open Bootstrap tabs & pills tabs from another page (hash anchor)
View index.html
<!doctype html>
<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>
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 / 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
// source:
// original code authored by jgraup -
* We are registering the fields for a custom taxonomy, called "user-logement".
View dimox_breadcrumbs.php
* WordPress Breadcrumbs
* author: Dimox
* version: 2019.03.03
* license: MIT
function dimox_breadcrumbs() {
/* === OPTIONS === */
ofyalcin /
Last active Apr 22, 2019
Earn Free $150 DigitalOcean Credit

DigitalOcean Coupon

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 ^(.*)$$1 [R=301,L]
ofyalcin / phpMyAdmin.sql
Last active Oct 22, 2018
phpMyAdmin/MySQL kullanarak Wordpress kullanıcı şifresini değiştirme
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
View index.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.';
You can’t perform that action at this time.