I'm having trouble understanding the behavior of a WP_Post variable (and / or possibly the behavior of var_dump itself).  As far as I know, var_dump will inspect all data from a variable. From the PHP documentation:     This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.    Then, why is it that var_dump($post) doesn't show metadata, whereas var_dump($post-&gt;metadata) does?  I've already read the offficial documentation, specially , as well as . I assume the explanation is there, in plain sight -- however, it's still unclear to me.   What's going on here? Is it some basic PHP behavior that I'm not aware? (I'm not sure if this question is because a lack of understanding how WordPress works or how PHP works. Sorry if this is the wrong site to ask).
I want to add additional items to the data returned as . So for every function/query that returns a WP_Post object I want my additional data added.  Example of returned result:  WP_Post (object) =&gt; [     // Default data returned by WP_Post     ID                  =&gt; int,     post_author         =&gt; string,     post_name           =&gt; string,     post_type           =&gt; string,     post_title          =&gt; string,     post_date           =&gt; string,     post_date_gmt       =&gt; string,     post_content        =&gt; string,     post_excerpt        =&gt; string,     post_status         =&gt; string,     comment_status      =&gt; string,     ping_status         =&gt; string,     post_password       =&gt; string,     post_parent         =&gt; int,     post_modified       =&gt; string,     post_modified_gmt   =&gt; string,     comment_count       =&gt; string,     menu_order          =&gt; string,      // Additional data I want to add     extra_data_1        =&gt; array,     more_data_key       =&gt; string,     another_added       =&gt; string ]   For example when the functions  or  are run they will return the WP_Post object along with my additional data.  I've tried finding the appropriate  but this has been unsuccessful.  I am hoping I can do something like:  // This is concept code add_action('pre_wp_post_return', function($data) {     $data-&gt;extra_data_1     = get_post_meta($data-&gt;ID, 'extra_data');     $data-&gt;more_data_key    = get_post_meta($data-&gt;ID, 'more_data', true);     $data-&gt;another_added    = get_post_meta($data-&gt;ID, 'another_data', true);      return $data; });   My reasoning is I am having to build a custom API for WP that uses a range of different core functions which return WP_Post objects. Being able to add my additional data in one place would prevent me from duplicating code.  I hope this is clear enough. Any help would be great!
Need hint for $\lim_{x\to 0} \frac{(x+1)^\frac{1}{x}-e}{x}$ Please give me some hints or solution for this limit. I had it on my exam and I'm curious how to solve it. $$ \lim_{x\to 0} \frac{(x+1)^\frac{1}{x}-e}{x} $$ Moving an already-running process to Screen I have two limit problems which are quite similar, so I've put them both into this post.   $((4^{10}+2^{n})^{\frac{1}{n}})$ $((3n^{2}+n)^{\frac{1}{n}})$   Attempt:  For 1, I'm not sure if this is permissible. I know that $\lim_{n \to \infty}(x^{n}+y^{n})^{\frac{1}{n}} = \max\{x,y\}$. Obviously $4^{10}$ is a constant so it's not quite in the same form, but I believe it is still okay to use this result, and so the limit is $2$.  For 2, I've got $((3n^{2}+n)^{\frac{1}{n}}) = (n(3n+1)^{\frac{1}{n}})$, but then I'm not too sure how to proceed.   I also thought of taking the log and proceeding that way, however in the notes I'm learning from they haven't covered l'hopital yet, so I'm trying to not use it.  Thanks. Non-EU spouse of UK citizen Schengen visa requirements I'm a British citizen and my wife is in the UK on a spouse visa. She holds a BRP card. We're planning to visit Germany and some other Schengen countries, and I've got a question around visa requirements/supporting documents.  I've read in few places (i.e ) that the visa requirements are more relaxed if the applicant is a spouse of a UK citizen, and is travelling with the UK citizen.  How relaxed are the requirements? Does my wife need to submit supporting documents for accommodation, finances, flight booking, etc.? Or is it simply submitting the application form alongside the passports and BRP? (i.e standard documentation for Schengen visa application section from ) How many numbers of 6 digits, that can be formed with digits 2,3,9. And also divided by 3? How many numbers of 6 digits, that can be formed with digits 2,3,9. And also divided by 3?  $$$$ I was trying to to add 2^6 (when there is no 2)+ C(6,2)2^2 (when 2 can be in two places)+C(6,3)2^3 (when 2 can be in three places)... Management of fruit bowls on the Enterprise D I have noticed that guest quarters on the Enterprise D have fruit bowls on their tables.  A prominent instance is the fruit bowl in Berlinghoff Rasmussen's quarters in "".  The first thing that Rasmussen does when Data takes him to his guest quarters is take a piece of fruit and shove it in his pocket.  Who replicates fruit for these fruit bowls before guests arrive?  More generally, who removes unused fruit and tidies quarters after guests leave?  Is there a ship hospitality staff, perhaps including Guinan's wait staff in Ten Forward? How to run a command when a directory's contents are updated? There is a directory A whose contents are changed frequently by other people.  I have made a personal directory B where I keep all the files that have ever been in A.  Currently, I just occasionally run rsync to get the files to be backed up from A to B. However, I fear the possibility that some files will get added in A, and then removed from A before I get the chance to copy them over to B.  What is the best way to prevent this from occurring? Ideally, I'd like to have my current backup script run every time the contents of A get changed. List questions: Community Wiki? Ubuntu 12.04 software upgrade does not show 12.10 upgrade Does it make sense to Favourite a Question you created? Is this just a redundant act, or are there differences? Awesome symbols and characters in a bash prompt I just ran across a screenshot of someone's terminal:    Is there a list of all of the characters which can be used in a Bash prompt, or can someone get me the character for the star and the right arrow? One of the most common gauges in QED computations are the $R_{\xi}$ gauges obtained by adding a term  \begin{equation} -\frac{(\partial_\mu A^{\mu})^2}{2\xi} \end{equation} to the Lagrangian. Different choices of $\xi$ correspond to different gauges ($\xi=0$ is Landau, $\xi=1$ is Feynman etc.) The propagator for the gauge field is different depending on the choice of gauge. The choice of Landau gauge forces $\partial_\mu A^\mu=0$, but I have never seen a similiar statement for the other gauges. I would like to know what constraint on the gauge field is produced by the other covariant gauges. For instance, what is the constraint on $A_\mu$ when $\xi=1,2,3,...$ etc. Is it still $\partial_\mu A^\mu=0$ or something different (it seems like it should be different)? Can a hotel kick you out if you let an unregistered guest share a room with you? We are going to an event and because of this event all hotels are fully booked. Now a friend wants to join us, but can't find accommodation. We are okay with him crashing in our hotel room, either on the couch or on a self-inflatable mattress. We have done this in the past where we secretly sneaked the "guest" in.   It is not that we don't want to pay the tourist tax, it is that when ask and the hotel says no, we can't sneak him in, because we drew attention to ourself. In many hotels you can just order another bed, but there are also a lot that don't have that service.   I don't have any ethical problems with my behavior of secretly hosting a guest. I did pay for the room. I don't like being sneaky about it, since again I do pay for the hotel room. Also if I have to choose between sneaking someone in the room to crash on the couch or let him/her sleep on bench in the park. I opt for the first.   Am I just worrying to much and will being honest about it in the end be acceptable to most if not all hotels? How to start itemize on same line as text? I've created a new environment called 'Example' like this:  \newenvironment{example}     {\textbf{Example:} \begin{itemize}}     {\end{itemize}}   The environment works fine, but the items are starting after the Example: text. Is it possible to start with the first item on the same line as the Example: text and vertically aline the rest of the items with the first item? How does long-distance space travel work in the MCU? In Guardians of the Galaxy vol. 2, we see long-distance space travel. It involves piloting your ship into some sort of "jump point" that opens up in space, taking the shape of a honeycomb-like structure with a single hex missing.  The way it's describe, these points are fixed in space: early in the movie, the Guardians have to out-run an enemy fleet to reach the one they need; later on, we see them fly through a very long series of them in sequence. It's also made clear that doing too many of these "jumps" in a row has consequences for the passengers.  The process seems to be similar to, say, the Mass Effect relay setup, mixed with a bit of Star Wars hyperspace travel.  Is this the first time we have seen long-distance space travel in the MCU? Is there anything from the source material that explains how this works from a logistical standpoint? If there's any information on the "science" behind it, that would also be helpful. Show Kripke's model proving that the following formula isn't tautology in intuitionistic logic. $ \neg ( p \wedge q ) \implies (\neg p \vee \neg q) $  Please help/hint me ;) urlEvent is undefined Showing $\sum\limits_{p \in P} \frac{1}{p}$ where $P$ is the set of all primes is divergent Proof of Steinitz Theorem I want a source containing the proof of Steinitz Isomorphism Theorem stating:     For any Dedekind domain $R$ and any two nonzero ideals $I$ and $J$ of $R$ we have $I⊕J≅R⊕IJ$.   Thanks! Seeing through objects in Game engine