Forums

[resolved] Where are variables such as %2$s defined? (3 posts)

  1. RyanPrentiss
    Member
    Posted 10 months ago #

    Where is %2$s and other variables defined within the register_sidebars function?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    They're placeholder/substitution variables. see http://www.php.net/manual/en/function.sprintf.php

  3. RyanPrentiss
    Member
    Posted 10 months ago #

    I understand that they're placeholders, but I can't seem to figure out what variables are assigned to the placeholders.

    --- what for it... ---

    And know I've noticed, lol. The variables are in the widget's constructor.

    But thank-you for taking the time to reply esmi.

Reply

You must log in to post.

About this Topic