source/php/Module/Posts/Posts.php
public function checkIfManuallyPicked($id)
    {
        global $wpdb;

        $result = $wpdb->get_results("
            SELECT *
            FROM $wpdb->postmeta
            WHERE meta_key = 'posts_data_posts'
                  AND meta_value LIKE '%\"{$id}\"%'
        ", OBJECT);

        if (count($result) === 0) {
            return false;
        }

        $posts = array();
        foreach ($result as $item) {
            $posts[] = $item->post_id;
        }

        return $posts;
    }
public function checkIfManuallyPicked($id)
    {
        global $wpdb;

        $result = $wpdb->get_results("
            SELECT *
            FROM $wpdb->postmeta
            WHERE meta_key = 'posts_data_posts'
                  AND meta_value LIKE '%\"{$id}\"%'
        ", OBJECT);

        if (count($result) === 0) {
            return false;
        }

        $posts = array();
        foreach ($result as $item) {
            $posts[] = $item->post_id;
        }

        return $posts;
    }
public function checkIfManuallyPicked ( $ id ) { global $ wpdb ; $ result = $ wpdb -> get_results ( "
            SELECT *
            FROM $wpdb->postmeta
            WHERE meta_key = 'posts_data_posts'
                  AND meta_value LIKE '%\"{$id}\"%'
        " , OBJECT ) ; if ( count ( $ result ) === 0 ) { return false ; } $ posts = array ( ) ; foreach ( $ result as $ item ) { $ posts [ ] = $ item -> post_id ; } return $ posts ; }
Check if current post is included in a manually picked data source in exapndable list
@param  integer $id Post id
@return array       Modules included in
Check if current post is included in a manually picked data source in exapndable list