This file contains hidden or 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 | |
| include __DIR__.'/wp-load.php'; | |
| // Get all category of wordpress site. | |
| // Categories are actually term located in `wp_terms` table. | |
| $categories = get_terms(); | |
| // This will fetch all categories of all post type of the site. | 
  
    
      This file contains hidden or 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 | |
| /** | |
| * Integrate custom post types into Flatsome 3 page builder application using a child theme. | |
| * | |
| * This will provide: | |
| * | |
| * 1. Page Builder Editor support for custom post types | |
| * 2. Integration with page builder post element components | |
| **/ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ | 
  
    
      This file contains hidden or 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 | |
| function wolinka_auto_delete_of_post_thumbnail($post_id) { | |
| if(has_post_thumbnail( $post_id )){ | |
| $attachment_id = get_post_thumbnail_id( $post_id ); | |
| wp_delete_attachment($attachment_id, true); | |
| } | |
| } | |
| add_action( 'before_delete_post', 'wolinka_auto_delete_of_post_thumbnail', 10 ); | |
| ?> | 
  
    
      This file contains hidden or 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 | |
| // Fatura Adresi kısmına vergi dairesi ve vergi numarası özel alanlarını ekler. | |
| function wolinka_billing_custom_checkout_fields( $fields ) { | |
| $fields['billing']['billing_vergi_dairesi'] = array( | |
| 'label' => __('Vergi Dairesi', 'woocommerce'), | |
| 'priority' => 35, | |
| 'required' => false, | |
| 'class' => array('form-row form-row-first'), | |
| 'clear' => true | 
  
    
      This file contains hidden or 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 | |
| //WooCommerce içerik sayfalarında, sepete ekle butonu öncesi yazı ekler | |
| function wolinka_free_shipping() { | |
| echo '<div class="free-shipping">Ücretsiz Kargo</div>'; | |
| } | |
| add_action( 'woocommerce_single_product_summary', 'wolinka_free_shipping', 20 ); | |
| ?> | 
  
    
      This file contains hidden or 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 | |
| function wolinka_remove_reviews_product_tabs( $tabs ) { | |
| unset( $tabs['reviews'] ); | |
| return $tabs; | |
| } | |
| add_filter( 'woocommerce_product_tabs', 'wolinka_remove_reviews_product_tabs', 98 ); | |
| ?> | 
  
    
      This file contains hidden or 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 | |
| function wolinka_remove_product_tabs( $tabs ) { | |
| unset( $tabs['description'] ); | |
| unset( $tabs['reviews'] ); | |
| unset( $tabs['additional_information'] ); | |
| return $tabs; | |
| } | |
| add_filter( 'woocommerce_product_tabs', 'wolinka_remove_product_tabs', 98 ); | 
  
    
      This file contains hidden or 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 | |
| function wolinka_rename_tab ($tabs) { | |
| $tabs['description']['title'] = 'Açıklama'; | |
| return $tabs; | |
| } | |
| add_filter( 'woocommerce_product_tabs', 'wolinka_rename_tab', 98); | |
| ?> | 
NewerOlder