Collections functions
General functions
Render functions
Theme permission functions
Resource functions

remove_invalid_node_keyword_mappings()

Description

Delete invalid node_keyword associations. Note, by invalid, it's meant where the node is missing.

Parameters

This function accepts no parameters.

Location

include/node_functions.php lines 2525 to 2529

Definition

 
function remove_invalid_node_keyword_mappings()
    {
    
ps_query('DELETE nk FROM node_keyword AS nk LEFT JOIN node AS n ON n.ref = nk.node WHERE n.ref IS NULL');
    
clear_query_cache('schema');
    }

This article was last updated 26th September 2022 14:05 Europe/London time based on the source file dated 21st September 2022 17:25 Europe/London time.