Limit Amount of Pages users can create in Custom Post Types

Check out my plugin Bainternet Posts Creation Limits this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. Its just what you need. Update open up bapl.php and in bapl_limit_post_count function change on line 44: if ( current_user_can(‘manage_options’) ) {}else{ if (isset($postt[$curent_type])){ //$postt= bapl_getOptions(‘bapl’); foreach ($postt … Read more

Paypal Framework

For subscriptions the method should be CreateRecurringPaymentsProfile and you still have to send trough all those CC parameters. to get a better understanding take a look at PayPal API Subscriptions which is a bit outdated but the code part of the API call is still relevant.

Set page to draft on plugin deactivation

I’m posting this as another solution for you and its based on the page id /* $post_id – The ID of the post you’d like to change. $status – The post status publish|pending|draft|private|static|object|attachment|inherit|future|trash. */ function change_post_status($post_id,$status){ $current_post = get_post( $post_id, ‘ARRAY_A’ ); $current_post[‘post_status’] = $status; return wp_update_post($current_post); } So once you have this function you … Read more