Title: Manually add by PHP code
Last modified: August 22, 2016

---

# Manually add by PHP code

 *  Resolved [YuchiRO](https://wordpress.org/support/users/yuchiro/)
 * (@yuchiro)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/manually-add-by-php-code/)
 * Hi
 * I want to add extra attribute by adding membership level by shortcode with php
 * Ex: <?php IF showSimpleMembershipshortcode
 * Do something
 * ?>
 * How to get Simple Membership to do with PHP ?
 * Regards
 * [https://wordpress.org/plugins/simple-membership/](https://wordpress.org/plugins/simple-membership/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/manually-add-by-php-code/#post-5708349)
 * I am not really understanding what you are trying to do. Can you please explain
   a little more?
 *  Thread Starter [YuchiRO](https://wordpress.org/support/users/yuchiro/)
 * (@yuchiro)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/manually-add-by-php-code/#post-5708416)
 * Hi
 * I try to verify user on homepage to show ads like
 * $au = BAuth::get_instance();
    if ( !$au->is_logged_in() ) { // show ads } else{//
   hide ads }
 * but look like this php code not working well.
 * Please help.
 * My membership have FREE level and fews paid level.
 * Regards
 *  [amijanina](https://wordpress.org/support/users/amijanina/)
 * (@amijanina)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/manually-add-by-php-code/#post-5708419)
 * i cannot think of a reason why this should not work. what kind error are you 
   seeing?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Manually add by PHP code’ is closed to new replies.

 * ![](https://ps.w.org/simple-membership/assets/icon-128x128.png?rev=974529)
 * [Simple Membership](https://wordpress.org/plugins/simple-membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-membership/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-membership/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [amijanina](https://wordpress.org/support/users/amijanina/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/manually-add-by-php-code/#post-5708419)
 * Status: resolved