Privileges problem with add_submenu_page [closed]

admin.php?page=quiniela/characters.php is coming from where in your codes well try this. function add_quiniela_menu() { add_menu_page(‘Quiniela Game’, ‘Quiniela Game’, 0, ‘quiniela/quiniela_funcs.php’, ”, ”); add_submenu_page( ‘quiniela/quiniela_funcs.php’, ‘Characters’, ‘Characters’, 0, ‘quiniela/quiniela_funcs.php?page=characters’ ); }

Excluding private/protected posts via IP

Bypass Password Protected Posts You are, unfortunately right about the lack of filters, and hacking the core is inevitable. One solutions that seems to work revolves around the sanitize_post_field() function which fires off a number of interesting filters if its $context argument is not set to raw. The template function that is responsible for deciding … Read more

wp-custom-menu filter removes the current_page_item class

After few hours of debugging I found out, that the wps_custom_nav_menu_items() actually receives the nav_menu_items with classes, applied by the _wp_menu_item_classes_by_context, but instead of using them, it reloads the entire menu from the database! So if you change $nav_items = wp_get_nav_menu_items( $menu_id ); To $nav_items = $args; (or just remove the line and rename the … Read more

how to deactivate a plugin without using a WP function?

The simplest way is probably renaming the plugin file or folder. But if you’re trying to handle it directly from the database, you’d have to grab the ‘active_plugins’ value from the wp_options table, unserialize it, remove your plugin from the array and reserialize it and update. You don’t necessarily have to use update_option. You could … Read more

Remove hovercard for only certian gravatars

Since @toscho has seemed to have revived this question here is one way to do it (not saying it’s the best but it works) It’s important to note I’ve switched to Jetpack which has hovercards built in. If you are using Jetpack here’s how you do it. function nifty_remove_grofiles() { if(is_page(‘about’)){ remove_action( ‘wp_enqueue_scripts’, ‘grofiles_attach_cards’ ); … Read more

allow photo/video in comments

I was recently looking for the same thing (only for photos), and the target audience isn’t likely to use photo sharing services, so I opted for a paid plugin from codecanyon. This was the best thing I could find and pretty easy to implement.

Paypal Integration [closed]

The best plugin that i know of that’s free but has a few premium addons is WP-Ecommerce, it’s very simple to use and features quite a few different payment gateways apart from PayPal. http://wordpress.org/extend/plugins/wp-e-commerce/