Inicio > Tutoriales > Cookies en WordPress

Cookies en WordPress


El otro día me encontré en la web este contenido:

El otro día me encontré con un pequeño problema con uno de mis clientes y la forma más sencilla de solucionarlo era usando cookies. El problema es que yo nunca había usado cookies en wordpress y la verdad me costo hacerlo funcionar ya que la mayoría de artículos en Internet me apuntaban en otra dirección.
Luego de buscar por un buen rato di con la solución.

Dentro de nuestro archivo functions.php

<exec>

function write_cookies(){

setcookie(“nombre_de_cookie”, ‘valor_de_cookie’, mktime(0,0,0,date(“m”),date(“d”),date(“Y”)+1), ‘/’,’host.com’);

}
add_action(‘init’, ‘write_cookies’);

</exec>

Anuncios
Categorías:Tutoriales
  1. 19 abril, 2012 en 17:41

    Are you looking for an affordable way to drive tons of traffic to your web page? You can stop looking because XRumerService is all you need!

    Hey
    As a web site owner, you know driving traffic is everything: It means more visitors, more click-through, and most importantly MORE MONEY!

    Now there’s a new service that gives you thousands of visitors per day for just pennies.

    And the way it works is this:

    Links to your web page are posted automatically in thousands of forums, creating backlinks to your site.

    Having so many backlinks, your website gain massive popularity in eyes of search engines so Google, Yahoo and Bing have no choice but to put your site at the top pages for your targeted keywords so your site will get FREE, TARGTED, LONG TERM TRAFFIC EFFORTESLY AND People see your website, products, services etc and spend their money. It’s that easy!

    XRumerService eliminates the need for spending hours, days or even weeks manually creating backlinks because it does it all for you automatically! And best of all is that it’s totally AFFORDABLE!!!

    You can check it out here:

    http://xrumerservice.org

  2. 4 abril, 2012 en 12:08

    If you want to make $20-$50/hour and up to $3500/month of your time working at
    home part-time then this is the most important message you’re ever going to read…

    It may sound hard to believe, but it’s true. There are thousands of companies out there who are willing to pay for your opinions regarding their products. This is an important part of product research, and they rely on people just like you for your honest opinion!

    Imagine getting paid for doing things like:

    – Trying out new menu items from popular restaurants
    – Take short surveys about new cars that are coming out soon
    – Give your opinion about new clothing and shoe designs
    But here’s a problem, it’s very hard to find out best survey site and you probably can waste too much time but I just stumbled up this article where this guy revealed his secret source where he registered and taking surveys in his free time and earning $3000-$4000/month

    Click Here To read this amazing story :
    http://www.home-businessreviews.com/Surveys-For-Money.html

  3. 15 marzo, 2012 en 03:43

    Most powerful&cost effective SEO and website traffic service in world get up to 100’000 forum backlinks now! Get amazing online web traffic using best backlink service today. We can post your marketing post up to 100’000 forums around the web, get thousands of backlinks and large targeted web traffic in shortest time. Most affordable and most powerful service for web traffic and backlinks in the world!!!! Your post will be published up to 100000 forums worldwide your website or blog will get instant traffic and massive increase in seo rankings just after few days or weeks so your site will get targeted long term traffic from search engines. Order now: backlink service

  4. 21 febrero, 2012 en 14:51

    Pero que chulo! *O* Como estan estas nvdiaades de premios, me lo apuntare y a ver si me acuerdo de participar porque… WoW xD PD: Gracias por pasarte por mi blog 😀

  5. 22 diciembre, 2011 en 04:39

    Earn up to $3500/month just by taking simple surveys online!

    I tried one of those online survey sites about 4 months ago that
    say all you have to do is spend a couple of minutes filling out
    some surveys and you will be making hundreds a day….. YEAH RIGHT, I didn’t make anything.

    I joined 7 of these stupid websites and I actually tried filling
    out a couple of surveys on each site and they took forever then at
    the end they wanted me to buy things or I couldn’t complete the
    survey.

    These are complete scams so be aware!!! I couldn’t believe they
    were even allowed to sell such bogus products.

    Then about 2 weeks ago I was watching the news and they had some
    vice presidents and marketing managers of some major multi million
    dollar companies talking about a site that they personally work
    with to pay consumers for their opinion, A site that actually just
    wants the “average Joe’s” honest opinion on products and services
    and is willing to pay big money to get them. for more information
    clik here: http://take-survey-and-get-money.info

  6. 17 octubre, 2011 en 21:39

    whats up http://www.darkernel.com blogger found your site via Google but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have discovered site which offer to dramtically increase traffic to your website http://xrumerservice.org they claim they managed to get close to 1000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my blog. Hope this helps 🙂 They offer seo elite seo optimize backlink service backlinks tool Take care. John

  1. No trackbacks yet.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: