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
// Disable Elementor frontend scripts on frontedn. | |
function _my_theme_remove_plugin_scripts() { | |
if ( is_admin() ) { | |
return; | |
} | |
wp_dequeue_script( 'swiper' ); | |
wp_dequeue_style( 'swiper' ); | |
wp_deregister_script( 'swiper' ); |
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 echo esc_html( get_post_meta( get_the_ID(), '_spp_count', true ) ); ?> |
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
require get_template_directory() . '/inc/postViews.php'; |
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
/* | |
Plugin Name: Simple Popular Posts Lite | |
Plugin URI: - | |
Description: - | |
Version: 2014.10.16 | |
Author: khromov | |
Author URI: http://snippets.khromov.se | |
License: GPL2 | |
*/ |
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
// Bu kod gayet akıllıca ve kısa. Fakat düzgün anlaşılmıyor. | |
isset( $var ) || $var = some_function(); | |
// Bu daha iyi ve anlaşılır. | |
if ( ! isset( $var ) ) { | |
$var = some_function(); | |
} | |
// Yanlış kullanım | |
if ( $data = $wpdb->get_var( '...' ) ) { |
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
// Doğru kullanım | |
if( true === $variable ) { | |
... | |
} | |
// Yanlış kullanım | |
if( $variable == true ) { | |
... | |
} |
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
// Yanlış kullanım | |
function eat( $what, $slowly = true ) { | |
... | |
} | |
// Doğru kullanım | |
function eat( $what, $speed = 'slowly' ) { | |
... | |
} |
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
define( 'DOING_AJAX', true ); | |
define( 'TEST_DENEME_DEGISKENI', 'test' ); |
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
class Walker_Category extends Walker { [...] } | |
class WP_HTTP { [...] } |
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
// Doğru kullanım | |
function test_fonksiyon_ismi( $test_degisken_ismi ) { ... } | |
// Yanlış kullanım | |
function testFonksiyonIsmi( $testDegiskenIsmi ) { ... } |
NewerOlder