wpliketounlock_metabox_savemeta

The Facebook Content Locker wpliketounlock metabox savemeta function.

Description

wpliketounlock_metabox_savemeta( $post_id ); 

Parameters (1)

0. $post_id
The post id.

Usage

  1. if ( !function_exists( 'wpliketounlock_metabox_savemeta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-content-locker/main.php'; 
  3.  
  4. // The post id. 
  5. $post_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpliketounlock_metabox_savemeta($post_id); 
  9.  

Defined (1)

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

/main.php  
  1. function wpliketounlock_metabox_savemeta($post_id) { 
  2. if (isset($_POST["wpliketounlock_id_like"]) && $_POST["wpliketounlock_id_like"] != "x") { 
  3. $id_like = $_POST["wpliketounlock_id_like"]; 
  4. update_post_meta($post_id, "wpliketounlock_id_like", $id_like);