This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| If you are using BP 2.1+, this will insert a State selectbox. | |
| Add the function to bp-custom.php and then visit .../wp-admin/users.php?page=bp-profile-setup | |
| Remove this function after the field is created. | |
| */ | |
| function bp_add_custom_state_list() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $comments = get_comments( array( | |
| 'type' => 'pings', | |
| 'fields' => 'ids', | |
| ) ); | |
| foreach ( $comments as $no => $comment_id ) { | |
| wp_delete_comment( $comment_id, true ); | |
| } |
OlderNewer