You appear to be a bot. Output may be restricted
Description
Return the cloned date from the _oik_clone_ids post meta structureWe need to take into account the fact that for versions up to v1.0.0-beta.0817 there was only a slave ID and no cloned date. We have to cater for a 0 date in other code.
Usage
oik_clone_get_slave_cloned( $cloned, $slave );
Parameters
- $cloned
- ( mixed ) required –
- $slave
- ( mixed ) required –
Returns
voidSource
File name: oik-clone/admin/oik-clone-meta-box.phpLines:
1 to 9 of 9
function oik_clone_get_slave_cloned( $cloned, $slave ) { $target = bw_array_get( $cloned, $slave, null ); if ( is_array( $target ) ) { $cloned = bw_array_get( $target, "cloned", null ); } else { $cloned = 0 ; } return( $cloned ); }View on GitHub