Sorry, this entry is only available in Amerikan İngilizcesi. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to s...
There are various ways to get user_ID in WP. But which one is the fastest ? I’ve compared 3 ways function get_uid_from_global() { global $current_user; return $current_user-&...
get_plugin_data() only in admin ? Why ?It provides crucial plugin info and many pointers. Like plugin folder, plugins name, plugins main file . More importantly, it could help you with a global unique_slug. More on this...
My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box...
<?php function notify_post_status( $post_id = NULL, $user = '' ) { if ( ! isset($_POST["post_id"]) ) { $post_id = $_POST["post_id"]; } else { return $post_id; } $post = get_post...
So I wasn’t able to add new items to wordpress menu and found out that the reason is the POST limit but adding max_input_vars = 2000 did not solve the problem (default is 100...
Long story short: BAD IDEA, don’t. It’s widely recommended to edit some of the spam comments -removing the spam url and editing comment content to something more relate...