insideout10 / wordlift-plugin

WordLift brings the power of Artificial Intelligence to beautifully organize content. Attract new readers and get their true attention.
https://wordlift.io
GNU General Public License v2.0
102 stars 42 forks source link

Add support to sort by match name #1704

Closed ziodave closed 1 year ago

ziodave commented 1 year ago
+--------------+---------------------+------+-----+---------+----------------+
| Field        | Type                | Null | Key | Default | Extra          |
+--------------+---------------------+------+-----+---------+----------------+
| id           | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| content_id   | bigint(20) unsigned | NO   | MUL | NULL    |                |
| content_type | tinyint(1) unsigned | NO   |     | NULL    |                |
| rel_uri      | varchar(500)        | NO   |     | NULL    |                |
| rel_uri_hash | char(40)            | NO   | UNI | NULL    |                |
| jsonld_hash  | char(40)            | YES  |     | NULL    |                |
| synced_gmt   | char(19)            | YES  |     | NULL    |                |
| about_jsonld | text                | YES  |     | NULL    |                |
+--------------+---------------------+------+-----+---------+----------------+
    private function get_match_name( $jsonld ) {
        $data = json_decode( $jsonld, true );
        if ( ! $data || ! array_key_exists( 'name', $data ) ) {
            return null;
        }

        return $data['name'];
    }
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.