Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 2566 to 2569

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');
    }

This article was last updated 19th March 2024 08:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.