Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8874353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:41:53+00:00 2026-06-14T18:41:53+00:00

I am working on wordpress research recently and trying to dig how the query

  • 0

I am working on wordpress research recently and trying to dig how the query mechanism is handled.
I came across a function definition like this
function &get_post(&$post, $output = OBJECT, $filter = 'raw')
I have not seen anything similar before and not sure if the ampersand(&) has to do something with the address.(Thinking traditionally the use of ampersand(&) ).
I am naive in this and spare me if its something easy.
Can anyone give their thoughts on this.It would help me in moving forward.Tried to find it through google and documentation but did not get find a solution.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:41:55+00:00Added an answer on June 14, 2026 at 6:41 pm

    The first & on the function declaration causes PHP to return a reference. The & on $post makes changes to the actual variable that you pass into the function.

    It’s actually unclear to me why either of these (the reference declarations) are used. It seems to me to be an incorrect attempt at optimization on WordPress’ part, or it is more likely for compatibility with PHP 4. I think you can just ignore the ampersands for your purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im working with wordpress and this function im using returns this or something that
I'm working on a wordpress site, with a blog post that ends like: http://www.blog.com/?p=2
note: I'm working on wordpress but this isn't a wordpress question. I have a
I'm working in wordpress, trying to figure out how to change the css color
I am working on wordpress site. In this site i need to play sounds
So I have been working with Wordpress 3.x and trying to build a custom
How do I parse this? I'm working with WordPress and jQuery. { MyCustomOutput: [
Ok, this is the deal. I just launched a website working on Wordpress where
Working with Wordpress on this. I'm using Magpie to grab an RSS feed, but
I am working with WordPress and I am trying to modify my template so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.