• 08-09-2010, 23:32:36
    #1
    Merbaha arkadaşlar functions.php'den bir kelimeyi başka bir kelimeyle nasıl değiştirebilirim ?
  • 08-09-2010, 23:34:00
    #2
    str_replace() functionu kullanabilirsiniz.

    Örn : str_replace('ali','veli',$kelime);
  • 08-09-2010, 23:54:30
    #3
    Ntie adlı üyeden alıntı: mesajı görüntüle
    str_replace() functionu kullanabilirsiniz.

    Örn : str_replace('ali','veli',$kelime);
    işte bunu tam olarak functions.php ye nasıl yazıcam sizin verdiğiniz gibi yazdığımda hata veriyor
  • 09-09-2010, 01:05:04
    #4
    Bu konuda bilgisi olan yokmu acaba ?
  • 09-09-2010, 08:29:55
    #5
    <?php
    /*
    Plugin Name: Simple Replacer
    Plugin URI: link to your page to download the plugin or usage guide
    Description: Replaces {donationcode} with paypal donation codes
    Author: Zen
    Version: 1.0
    Author URI: http://zenverse.net/
    */
    
    function the_replacer($content)
    {
        $post = str_replace( '{donationcode}' , 'YOUR_DONATION_HTML_CODES' , $content);
        return $content;
    }
    
    add_filter('the_content', 'the_replacer');
    
    ?>
    http://zenverse.net/creating-a-simpl...s-post-content