pp_lc_generate_avatars_callback

The BP Local Avatars pp lc generate avatars callback function.

Description

pp_lc_generate_avatars_callback( $arg ); 

Parameters (1)

0. $arg
The arg.

Usage

  1. if ( !function_exists( 'pp_lc_generate_avatars_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-local-avatars/pp-local-avatars.php'; 
  3.  
  4. // The arg. 
  5. $arg = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pp_lc_generate_avatars_callback($arg); 
  9.  

Defined (1)

The function is defined in the following location(s).

/pp-local-avatars.php  
  1. function pp_lc_generate_avatars_callback( $arg ) { 
  2. ?> 
  3. <table class="form-table"> 
  4. <tr> 
  5. <th scope="row"><?php _e('BuddyPress Avatars'); ?></th> 
  6. <td><fieldset> 
  7. <label for="gen_avatars"> 
  8. Generate Identicons and store them locally for all BP Members and Groups without an Avatar. <br/><br/> 
  9. If you have a large number of members without Avatars, <em>this may take too long</em>. <br/><br/> 
  10.  
  11. <a href="<?php print wp_nonce_url(admin_url('options-discussion.php?task=bulk-generate'), 'bulk_gen', 'pp_nonce');?>">Generate Identicons</a> 
  12.  
  13. </label> 
  14. </fieldset></td> 
  15. </tr> 
  16. </table> 
  17. <?php