275 reputation
314
bio website
location Turkey
age 23
visits member for 4 years, 3 months
seen May 19 at 0:26

Apr
14
comment Using the 'draft_to_publish' hook (post status transition)
@bosco , it should my_function( $strNewStatus, $strOldStatus, $post ) not my_function( $strOldStatus, $strNewStatus, $post ). Thank you.
Apr
1
comment Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
If I don't want to use AJAX , are there any action to achieve this? If there isn't I'll use ajax.
Apr
1
comment Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
Just edited first code sample and wrapper wp_insert_term with add_new_term() function. Can you check please? I need to put it inside of a function because I have a button on my plugin page , when user click to this button I will add a new term to taxonomy . I'll use AJAX request for this and I'll call add_new_term() function inside AJAX method.
Apr
1
comment Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
@PieterGoosen I think you misunderstood my comment. There is a big difference between my problem and that question. In that question it's registering 2 terms on plugin activation, but I need to register terms whenever I need.
Mar
31
comment Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
@PieterGoosen I put my create_tax method to plugin activation function (and disabled&enabled plugin) , but still same error . Here my codes : paste.ubuntu.com/10714681
Mar
31
comment Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
@PieterGoosen actually they are not the same question, because in that question he want to add terms for one time. I mean he want to create a taxonomy and insert 2 default terms to on plugin activation.Because of this, he is using register_activation_hook(). But I'll use wp_insert_term lots of this, for example there will be a button and everytime it clicked I'll add a new term to taxonomy.
Mar
31
comment All of my wordpress sites showing †Ù¥
Somehow your files get broken. It can be UTF8 encoding problem, hacker attack, broken plugin. It's difficult to say what happend without checking your files and log. Delete all unused plugins and themes from your WP installation. Now I'll send an answer so you can choose it as accepted answer :)
Mar
31
comment Combine category AND custom taxonomy in permalink structure
Did you solve your problem @dama_do_bling ? If yes, there are some friends waiting for answer :)
Mar
31
comment All of my wordpress sites showing †Ù¥
It's weird that characters disappering when you refresh page. So it's about sessions which can be a security vulnerability. I recommend you to backing up all files&database , deactivate all plugins and themes and update manually by following this guide : codex.wordpress.org/Updating_WordPress#Manual_Update
Mar
31
comment All of my wordpress sites showing †Ù¥
Hello Steve, Please check your .htaccess file, maybe some attacker forward your requests to any other HTML file with that weird characters. If your .htaccess file is ok , try deactivating all plugins and activating one of the WordPress default themes. If problem is gone after these steps, try enabling plugins one by one so you can catch the plugin which causing this error.
Mar
31
comment Difference between after_setup_theme and init action hooks?
Just an addition to Bainternet's great answer. You can see execution order of hooks in here : codex.wordpress.org/Plugin_API/Action_Reference . And you can see all hooks and differences between after_setup_theme and init
Jun
7
comment Using My Own Classes On Wp Unit Tests
Now I got it @J.D. Thank you for your detailed response.
Aug
25
comment Versioning and your WordPress site?
@AlxVallejo , it's interacts with your files. When you checkout a version of your project. Your all files changed with that version's file. So when you refresh your files (just close and open again) in Dreamviewer, you'll see new content of files.
Jun
6
comment Getting Details Of Uploaded Image
if it's not attached to any post ?
Jun
6
comment Getting Details Of Uploaded Image
@Tommixoft , thank you. Just update my answer.
Apr
6
comment Using custom page templates with plugin
Thank you template_include() solve my problem.
Apr
6
comment Using custom page templates with plugin
i solved my problem with template_include(). Thank you.
Jan
17
comment Setting a post's category
OK i got it , 3th argument is taxonomy so it should be galleries :) wp_set_object_terms($postid, $categoryid, $taxonomy)'s mean is add this post to this category ($categoryid) which in $taxonomy taxonomy :) If you update your answer, i'll accept it.
Jan
17
comment Setting a post's category
i'll add my post to Custom Category (slug:customcategory) category. This category in galleries taxonomy
Jan
17
comment Setting a post's category
not working : wp_set_object_terms( $insert_post, intval( $id ), 'customcategory'); or wp_set_object_terms( $insert_post, intval( $id ), 'Custom Category');