1,259 reputation
616
bio website
location Lahore, Pakistan
age
visits member for 3 years, 1 month
seen Jul 27 at 7:37

ob_start()

if(PHP_PROGRAMMER && WP_DEVELOPER && MYSQL_QUERIER && DATBASE_ANALYSER) this.profile = me;

ob_clean_flush();


Jul
8
answered hook filter after the_content on a specific page
Jun
13
awarded  Yearling
Apr
3
awarded  Tenacious
Mar
27
answered String taken from database table post_meta is showing HTML tags on Frontend
Mar
27
answered Is it possible to wp_redirect() to a new tab?
Mar
27
comment Is it possible to wp_redirect() to a new tab?
Nop, its not possible at all with wp_redirect(). One have to find other way around to accomplish it.
Mar
27
comment Update user meta without lose of old data
Sorry, I dont get your question if i delete a meta with the specific file it doesn't work, ... so it's deleting value.Btw, Why do you have to store it as a serialize array? I would recommend to convert it to a string. If you have to store "105", store it differently, may be, with separation of a special character.
Mar
26
comment Update user meta without lose of old data
Why do you want more than one file, json encoded, in one instance? Separating them would make them more managable and you dont need to json encode them.
Mar
26
answered Update user meta without lose of old data
Mar
25
comment Update user meta without lose of old data
By default add_user_meta do not delete the old values. Check the last $unique parameter. codex.wordpress.org/Function_Reference/add_user_meta
Mar
24
comment Replace content in Wordpress Page after GET from php page
Look for oAuth which is very popular and robust, most probably, you will find a library set for the framework you are using on external server. Or, you can create your own service that gets the parameters and echos 0 or 1 for valid and invalid requests. It all depends on your application.
Mar
24
comment Replace content in Wordpress Page after GET from php page
My solution would be to expose an authentication service on external server and WordPress collects and verify the credentials (through that service) and respond accordingly. So, external server only authenticate if the credentials are valid or not. All HTML should be generated on WordPress.
Mar
24
comment Replace content in Wordpress Page after GET from php page
If you do not have any better solution except to posting a full html back to this page, you can echo $_POST['postback_html'] instead of the_content() and keep the authCode to verify authenticity of the request to make sure that request did not came from an unkown source. NOTE: YOU MUST AVOID AS MUCH AS POSSIBLE TO DISPLAY HTML DIRECTLY FROM A POST/GET VARIABLES. IF THERE IS NO OTHER WAY, CONFIGURE TOP-NOTCH SECURITY LAYER TO DO THAT.
Mar
24
comment Replace content in Wordpress Page after GET from php page
how "PHP GIVE BACK RESULT IN HTML FORMAT" is carried out?
Mar
24
comment Replace content in Wordpress Page after GET from php page
I think, I mis-understood your problem earlier. I changed the above solution to a page template. My understanding is, you want to password protect the post/page contents and should be displayed on authentication by an external page.
Mar
24
revised Replace content in Wordpress Page after GET from php page
revised solution
Mar
24
comment Replace content in Wordpress Page after GET from php page
You need to put in your functionality plugin or functions.php of your theme.
Mar
24
answered Replace content in Wordpress Page after GET from php page
Mar
24
comment sanitize_text_field and apostrophe problem
In my opinion, its safe as stripslashes only remove those slashes that are being used to escape the special characters and stripslashes_deep does the same thing for each element
Mar
24
comment sanitize_text_field and apostrophe problem
Use stripslashes() function after reading the data it will remove the extra slashes.