-1
votes
1answer
60 views

Marketpress php warning on server, no problem on localhost [closed]

I have this in my functions.php that creates a shopping cart widget with the plugin Marketpress. <?php function marketpress_get_cart_subtotal($format_currency=true) { global $mp; ...
0
votes
1answer
127 views

Error while setting role

I already got code which can change role basis on post count. <?php add_action( 'save_post', 'update_roles' ); function update_roles( $post_id ) { if ( defined( 'DOING_AUTOSAVE' ) ...