nxs_filter_where_only

The NextScripts: Social Networks Auto-Poster nxs filter where only function.

Description

nxs_filter_where_only( (string) $where = '' ); 

Parameters (1)

0. $where — Optional. (string) => ''
The where.

Usage

  1. if ( !function_exists( 'nxs_filter_where_only' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The where. 
  5. $where = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_filter_where_only($where); 
  9.  

Defined (1)

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

/nxs_functions.php  
  1. function nxs_filter_where_only( $where = '' ) { global $wpdb; $where .= " AND ($wpdb->postmeta.meta_key = 'snap_isAutoPosted' AND $wpdb->postmeta.meta_value = '1') "; return $where; }