Skip to content

Instantly share code, notes, and snippets.

@Preciousomonze
Last active June 12, 2024 09:15
Show Gist options
  • Select an option

  • Save Preciousomonze/c4e6168a4bde02a7eece84fd9c4645d5 to your computer and use it in GitHub Desktop.

Select an option

Save Preciousomonze/c4e6168a4bde02a7eece84fd9c4645d5 to your computer and use it in GitHub Desktop.

Revisions

  1. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ Guess this helps get the fields from the profile.
    - Get the RH fields which are marked to show in the profile.
    If a $user_id is passed in, get fields based on the user's level.

    `function pmprorh_getProfileFields( $user_id, $withlocations = false );`
    `function pmprorh_getProfileFields( $user_id, $withlocations = false )`



  2. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -17,10 +17,10 @@ Guess this helps get the fields from the profile.

    #### pmpro_getAllLevels - Paid Membership Pro
    Get all PMPro membership levels.
    - @param bool $include_hidden Include levels marked as hidden/inactive.
    - @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    - @param bool $force Resets the static var caches as well.
    - @return array An array list of level(s) object
    - @param bool $include_hidden Include levels marked as hidden/inactive.
    - @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    - @param bool $force Resets the static var caches as well.
    - @return array An array list of level(s) object

    `function pmpro_getAllLevels( $include_hidden = false, $use_cache = false, $force = false )`

  3. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## So I'll just try to be dumping some things here for docu purposes. Feel free to comment, if you have more to add. I'll try as much as possible to update.

    ### Disclaimer: Please remember that we are all imperfect, and as such, some of the info here might be incorrect, that's why we're a community. Any info you find incorrect, please do well to suggest the correct thing in the comment section, we're doing it for all of us. People powerrr
    ### Disclaimer: Please remember that we are all imperfect, and as such, some of the info here might be or outdated or incomplete, that's why we're a community. Any info you find incorrect, please do well to suggest the correct thing in the comment section, we're doing it for all of us. People powerrr

    ### Note: That this also includes functions from their addons.

    @@ -16,11 +16,11 @@ Guess this helps get the fields from the profile.


    #### pmpro_getAllLevels - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get all PMPro membership levels.
    Get all PMPro membership levels.
    - @param bool $include_hidden Include levels marked as hidden/inactive.
    - @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    - @param bool $force Resets the static var caches as well.
    - @return array An array list of level(s) object

    `function pmpro_getAllLevels( $include_hidden = false, $use_cache = false, $force = false )`

  4. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ Guess this helps get the fields from the profile.

    `function pmprorh_getProfileFields( $user_id, $withlocations = false );`



    #### pmpro_getAllLevels - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get all PMPro membership levels.
    @@ -22,6 +24,8 @@ Guess this helps get the fields from the profile.

    `function pmpro_getAllLevels( $include_hidden = false, $use_cache = false, $force = false )`



    #### pmpro_sort_levels_by_order - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get an ordered list of level objects or level IDs.
  5. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -16,9 +16,9 @@ Guess this helps get the fields from the profile.
    #### pmpro_getAllLevels - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get all PMPro membership levels.
    @param bool $include_hidden Include levels marked as hidden/inactive.
    @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    @param bool $force Resets the static var caches as well.
    - @param bool $include_hidden Include levels marked as hidden/inactive.
    - @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    - @param bool $force Resets the static var caches as well.

    `function pmpro_getAllLevels( $include_hidden = false, $use_cache = false, $force = false )`

  6. Preciousomonze revised this gist Aug 3, 2021. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,32 @@
    ## So I'll just try to be dumping some things here for docu purposes. Feel free to comment, if you have more to add. I'll try as much as possible to update.

    ### Disclaimer: Please remember that we are all imperfect, and as such, some of the info here might be incorrect, that's why we're a community. Any info you find incorrect, please do well to suggest the correct thing in the comment section, we're doing it for all of us. People powerrr

    ### Note: That this also includes functions from their addons.

    Format will be "Function name - Plugin name"

    #### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    Guess this helps get the fields from the profile.
    - Get the RH fields which are marked to show in the profile.
    If a $user_id is passed in, get fields based on the user's level.

    `function pmprorh_getProfileFields( $user_id, $withlocations = false );`

    #### pmpro_getAllLevels - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get all PMPro membership levels.
    @param bool $include_hidden Include levels marked as hidden/inactive.
    @param bool $use_cache If false, use $pmpro_levels global. If true use other caches.
    @param bool $force Resets the static var caches as well.

    `function pmpro_getAllLevels( $include_hidden = false, $use_cache = false, $force = false )`

    #### pmpro_sort_levels_by_order - Paid Membership Pro
    Guess this helps get the fields from the profile.
    - Get an ordered list of level objects or level IDs.
    - @param array $pmpro_levels An array of level objects or level IDs to be reordered.
    - @return array $pmpro_levels An ordered array of level objects or level IDs.

    `function pmpro_sort_levels_by_order( $pmpro_levels )`

  7. Preciousomonze revised this gist Aug 1, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ Guess this helps get the fields from the profile.
    - Get the RH fields which are marked to show in the profile.
    If a $user_id is passed in, get fields based on the user's level.

    `function pmprorh_getProfileFields( $user_id, $withlocations = false )`
    `function pmprorh_getProfileFields( $user_id, $withlocations = false );`



  8. Preciousomonze revised this gist Aug 1, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,6 @@ Guess this helps get the fields from the profile.
    - Get the RH fields which are marked to show in the profile.
    If a $user_id is passed in, get fields based on the user's level.

    Usage:
    `function pmprorh_getProfileFields( $user_id, $withlocations = false )`


  9. Preciousomonze revised this gist Aug 1, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,12 @@

    #### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    Guess this helps get the fields from the profile.
    - Get the RH fields which are marked to show in the profile.
    If a $user_id is passed in, get fields based on the user's level.

    Usage:
    `pmprorh_getProfileFields( $user_id )`
    `function pmprorh_getProfileFields( $user_id, $withlocations = false )`




  10. Preciousomonze revised this gist Aug 1, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@
    ## So I'll just try to be dumping some things here for docu purposes. Feel free to comment, if you have more to add. I'll try as much as possible to update.
    ### Note: That this also includes functions from their addons.

    ##### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    #### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    Guess this helps get the fields from the profile.

    Usage:
    `pmprorh_getProfileFields( $user_id )`


  11. Preciousomonze revised this gist Aug 1, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,8 @@
    ### Note: That this also includes functions from their addons.

    ##### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    ``
    Guess this helps get the fields from the profile.
    `pmprorh_getProfileFields( $user_id )`



  12. Preciousomonze created this gist Aug 1, 2021.
    8 changes: 8 additions & 0 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ## So I'll just try to be dumping some things here for docu purposes. Feel free to comment, if you have more to add. I'll try as much as possible to update.
    ### Note: That this also includes functions from their addons.

    ##### pmprorh_getProfileFields - Paid Membership Pro Registration Helper
    ``