275 reputation
314
bio website
location Turkey
age 22
visits member for 4 years, 1 month
seen 8 hours ago

15h
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.
15h
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.
15h
revised Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
added 165 characters in body
16h
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.
1d
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
1d
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.
2d
answered All of my wordpress sites showing †Ù¥
2d
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 :)
2d
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 :)
2d
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
2d
answered 500 internal server error cant update database
2d
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.
2d
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
2d
asked Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
Jul
2
awarded  Curious
Jun
7
comment Using My Own Classes On Wp Unit Tests
Now I got it @J.D. Thank you for your detailed response.
Jun
7
accepted Using My Own Classes On Wp Unit Tests
Jun
7
revised Using My Own Classes On Wp Unit Tests
added 84 characters in body
Jun
7
asked Using My Own Classes On Wp Unit Tests
May
19
asked Why There Is No “get content by ID” Function