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 | |
// For Plugin: https://tr.wordpress.org/plugins/reading-time-wp/ | |
function reading_time($post_id) { | |
// Words per minute | |
$wpm = 150; | |
$post_content = get_post_field('post_content', $post_id); | |
$number_of_images = substr_count(strtolower($post_content), '<img '); | |
$post_content = strip_shortcodes($post_content); |
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
if (version_compare($GLOBALS['wp_version'], '5.0-beta', '>')) { | |
add_filter('use_block_editor_for_post_type', '__return_false', 100); | |
} else { | |
add_filter('gutenberg_can_edit_post_type', '__return_false'); | |
} |
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 | |
// This codes works when theme activate. | |
function switch_theme(){ | |
$widgets = get_option( 'sidebars_widgets' ); | |
$widgets['home_sidebar'] = array( | |
'search-1', // widgetname-1 | |
'text-1', | |
'categories-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
import React, { Component } from 'react'; | |
import {AppRegistry, View, Text,StyleSheet,TouchableOpacity } from 'react-native'; | |
import Speech from 'react-native-speech'; | |
import Voice from 'react-native-voice'; | |
export default class NVoice extends Component { | |
constructor(){ | |
super(); | |
this.state = { | |
results: [] |
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
<option value="istanbul">İstanbul</option> | |
<option value="ankara">Ankara</option> | |
<option value="izmir">İzmir</option> | |
<option value="adana">Adana</option> | |
<option value="adiyaman">Adıyaman</option> | |
<option value="afyon">Afyon</option> | |
<option value="agri">Ağrı</option> | |
<option value="aksaray">Aksaray</option> | |
<option value="amasya">Amasya</option> | |
<option value="antalya">Antalya</option> |