|
@@ 1262-1271 (lines=10) @@
|
| 1259 |
|
$this->add_ping( 'db', array( 'postmeta' => $meta_id ) ); |
| 1260 |
|
} |
| 1261 |
|
|
| 1262 |
|
function postmeta_modification_handler( $meta_id, $object_id, $meta_key, $meta_value ) { |
| 1263 |
|
if ( in_array( $meta_key, $this->get_post_meta_name_ignore() ) ) |
| 1264 |
|
return; |
| 1265 |
|
|
| 1266 |
|
if ( !is_array( $meta_id ) ) |
| 1267 |
|
return $this->add_ping( 'db', array( 'postmeta' => $meta_id ) ); |
| 1268 |
|
foreach ( $meta_id as $id ) { |
| 1269 |
|
$this->add_ping( 'db', array( 'postmeta' => $id ) ); |
| 1270 |
|
} |
| 1271 |
|
} |
| 1272 |
|
|
| 1273 |
|
// Handle Notifying VaultPress of PostMeta changes via old school cherypicked hooks |
| 1274 |
|
function postmeta_action_handler( $meta_id, $post_id = null, $meta_key = null ) { |
|
@@ 1274-1282 (lines=9) @@
|
| 1271 |
|
} |
| 1272 |
|
|
| 1273 |
|
// Handle Notifying VaultPress of PostMeta changes via old school cherypicked hooks |
| 1274 |
|
function postmeta_action_handler( $meta_id, $post_id = null, $meta_key = null ) { |
| 1275 |
|
if ( in_array( $meta_key, $this->get_post_meta_name_ignore() ) ) |
| 1276 |
|
return; |
| 1277 |
|
|
| 1278 |
|
if ( !is_array($meta_id) ) |
| 1279 |
|
return $this->add_ping( 'db', array( 'postmeta' => $meta_id ) ); |
| 1280 |
|
foreach ( $meta_id as $id ) |
| 1281 |
|
$this->add_ping( 'db', array( 'postmeta' => $id ) ); |
| 1282 |
|
} |
| 1283 |
|
|
| 1284 |
|
// WooCommerce notifications |
| 1285 |
|
function woocommerce_tax_rate_handler( $id ) { |