You appear to be a bot. Output may be restricted
Description
Display the oik-clone metabox- This should be a series of checkboxes, one for each target site.
- The checkbox is ticked by the user when they want to clone the content on update.
- By default the column of checkboxes should be deselected since we don't want to update the slaves every time we make a change
- When the user selects "Update" and at least one of the checkboxes is checked then cloning will be performed
`
x https://qw/wordpress ( cloned ) x https://oik-plugins.com ( cloned ) `
Messages that may be displayed to the user are: - Enable clone to enable cloning of this post type
- No slave servers defined
- Clone parent post first
Usage
oik_clone_box( $post, $metabox );
Parameters
- $post
- ( object ) required – the post object
- $metabox
- ( object ) required – the metabox object
Returns
voidSource
File name: oik-clone/admin/oik-clone-meta-box.phpLines:
1 to 17 of 17
function oik_clone_box( $post, $metabox ) { //bw_trace2(); //bw_backtrace(); oik_require( "admin/oik-save-post.php", "oik-clone" ); $clone = post_type_supports( $post->post_type, "clone" ); if ( $clone ) { oik_require( 'admin/class-oik-clone-meta-clone-ids.php', 'oik-clone'); $slaves = oik_clone_get_slaves(); $clone_meta = new OIK_clone_meta_clone_ids(); $clones = $clone_meta->get_clone_info( $post->ID ); $clone_meta->display_cbs( $slaves ); oik_clone_check_parent_cloned( $post, $slaves ); } else { p( "Cloning not supported for post types that do not support 'clone'" ); } }View on GitHub