Title: statstutor's Replies | WordPress.org

---

# statstutor

  [  ](https://wordpress.org/support/users/statstutor/)

 *   [Profile](https://wordpress.org/support/users/statstutor/)
 *   [Topics Started](https://wordpress.org/support/users/statstutor/topics/)
 *   [Replies Created](https://wordpress.org/support/users/statstutor/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/statstutor/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/statstutor/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/statstutor/engagements/)
 *   [Favorites](https://wordpress.org/support/users/statstutor/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/statstutor/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/statstutor/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511572)
 * That part I’ve figured out. The only thing that I cannot work out is how to alter
   the setting for ‘woocommerce_registration_generate_password’. Everything seems
   to come down to controlling this setting. It governs the behavior of form-login.
   php, class-wc-form-handler.php, and even customer-new-account.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511542)
 * I wouldn’t know where to begin with the custom form handler. Any tips where to
   start, or should I hire a developer for this? Seems a shame – I feel like I’ve
   come so close to getting this figured out… but I understand you can’t answer 
   my questions all day either!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511534)
 * Yes I am using WC to handle the form. I prefer WC over WP in terms of the ease
   of flow.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511532)
 * I did create my own custom form (form-login_jjr.php) which I call up in a sidebar
   on pages that have a custom meta _scholar_coursecat set.
 * I was hoping to find a way for this form to be the only form that doesn’t ask
   the user to create a password, but instead auto-generates one. It seems to me
   though that whether or not a password will be autogenerated occurs on a deeper
   level.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511527)
 * I am unsure of your meaning “compare against the URL”.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511524)
 * I tried the following code. The resulting form did not ask me to create a password(
   good), but when I submitted the form an error message appeared telling me “Error:
   Please enter an account password.”
 *     ```
       // Set woocommerce_registration_generate_password to 'yes' on pages where _scholar_coursecat is set
       add_filter('pre_option_woocommerce_registration_generate_password', 'custom_registration_auto_password');
   
       function custom_registration_auto_password( $option ) {
   
       	$coursecat_id = get_post_meta(get_the_ID(), '_scholar_coursecat', true); 
   
       	if ( !empty($coursecat_id) ) {
   
       		global $wp_query;
   
       		$option = 'yes';
       		return $option;
   
       	}
   
       }
       ```
   
 * I suspect my option is changing the wrong setting and that I need to change a
   deeper setting, but I am having difficulty find the correct option to change.
   I tried tracing back woocommerce_registration_generate_password to where it is
   set, but without any luck.
 * Do you know where I should be looking for the proper setting?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Auto-generate Password – but ONLY for a specific registration form?](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-generate-password-but-only-for-a-specific-registration-form/#post-7511508)
 * Thanks for your response Mike.
 * Quite right. I am calling the woocommerce account form in my code. I want to 
   know if there is a way to call it with the password auto generate activated for
   only that session – not globally.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP QuickLaTeX] Shortcodes not recognized in comments](https://wordpress.org/support/topic/shortcodes-not-recognized-in-comments/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [10 years ago](https://wordpress.org/support/topic/shortcodes-not-recognized-in-comments/#post-7447579)
 * My Bad!
 * I’m a dope. I installed the plugin on my staging site, but was trying the shortcodes
   on my live site.
 * The plugin works as intended. It’s very nice!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP LaTeX] Can't get latex to display in Sensei questions](https://wordpress.org/support/topic/cant-get-latex-to-display-in-sensei-questions/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/cant-get-latex-to-display-in-sensei-questions/#post-6288017)
 * Marking this as resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP LaTeX] Can't get latex to display in Sensei questions](https://wordpress.org/support/topic/cant-get-latex-to-display-in-sensei-questions/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/cant-get-latex-to-display-in-sensei-questions/#post-6288016)
 * Got this answer from Woothemes, and it currently works for me:
 *     ```
       // Support for WP LaTeX plugin
       global $wp_latex;
       if ( is_object( $wp_latex ) ) {
           // This isn't really correct.  This adds all shortcodes to comments, not just LaTeX
           add_filter( 'sensei_question_title', array( $wp_latex, 'inline_to_shortcode' ) );
           add_filter( 'sensei_question_title', 'do_shortcode' );
           add_filter( 'sensei_answer_text', array( $wp_latex, 'inline_to_shortcode' ) );
           add_filter( 'sensei_answer_text', 'do_shortcode' );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SearchAutocomplete] How to append item to the results list](https://wordpress.org/support/topic/how-to-append-item-to-the-results-list/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-to-append-item-to-the-results-list/#post-6380257)
 * Thank you sepehr125 for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SearchAutocomplete] How to append item to the results list](https://wordpress.org/support/topic/how-to-append-item-to-the-results-list/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-to-append-item-to-the-results-list/#post-6380126)
 * Thanks! That was a very quick reply, and was easy to implement.
 * Is there a method for adding an element other than another link? I would like
   to add a button, or a div.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Is any custom capability logic possible?](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [11 years ago](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/page/2/#post-6136110)
 * But this is more work than the same type of solution that S2 offers right out
   of the box:
 * 1. Create Bundle #1 selling level 1 with ccap X and ccap Y.
    2. Create Bundle#
   2 selling level 1 with ccap Y and ccap Z. 3. Create Bundle #3 selling level 1
   with ccap X and ccap Z.
 * …plus it involves adding another plugin. My concern is that this X,Y,Z scheme
   is only a simplified model of the number of different lessons I am selling, and
   so I’m looking for something that will scale up easily as the complexity and 
   size of the bundles scale up.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Is any custom capability logic possible?](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [11 years ago](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/page/2/#post-6136108)
 * Can you please show me how to build the structure I described above in a way 
   that effectively uses multiple levels?
 * Bundle #1: Can see pages X and Y
 * Bundle #2: Can see pages Y and Z
 * Bundle #3: Can see pages X and Z
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Is any custom capability logic possible?](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/)
 *  Thread Starter [statstutor](https://wordpress.org/support/users/statstutor/)
 * (@statstutor)
 * [11 years ago](https://wordpress.org/support/topic/is-any-custom-capability-logic-possible/#post-6136102)
 * I do understand that levels do not inherit ccaps. I’ve been working with this
   plugin for years. I don’t think you’re understanding at all what I’m asking. 
   Thank you for your time, but I’ll try to find my answers elsewhere.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/statstutor/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/statstutor/replies/page/2/?output_format=md)