File "admin-functions.php"
Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/plugins/flamingo/admin/admin-functions.php
File size: 606 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
function flamingo_current_action() {
if ( isset( $_REQUEST['delete_all'] )
or isset( $_REQUEST['delete_all2'] ) ) {
return 'delete_all';
}
if ( isset( $_REQUEST['action'] )
and -1 != $_REQUEST['action'] ) {
return $_REQUEST['action'];
}
if ( isset( $_REQUEST['action2'] )
and -1 != $_REQUEST['action2'] ) {
return $_REQUEST['action2'];
}
return false;
}
function flamingo_get_all_ids_in_trash( $post_type ) {
global $wpdb;
$q = "SELECT ID FROM $wpdb->posts WHERE post_status = 'trash'"
. $wpdb->prepare( " AND post_type = %s", $post_type );
return $wpdb->get_col( $q );
}