Hi James,
could you please help me to add this code?
add_action(‘init’, ‘my_custom_init’);function my_custom_init() {
add_post_type_support( ‘product’, ‘publicize’ );
}
You’ll need to replace “product” with your Custom Post Type name. –> What is my Custon Post Type?
// Register Custom Post Type
function custom_post_type() {
$labels = array(
‘name’ => _x( ‘Products’, ‘Post Type General Name’, ‘text_domain’ ),
);
$args = array(
‘label’ => __( ‘product’, ‘text_domain’ ),
‘supports’ => array( ‘title’, ‘editor’, ‘publicize’, ‘wpcom-markdown’ ),
);
register_post_type( ‘product’, $args );
}
// Hook into the ‘init’ action
add_action( ‘init’, ‘custom_post_type’, 0 );
Thanks
Yeah, your are Right. ..when de Order is in Complete, send info and generated gift card number.
Everything is Ok.
Thanks for your help!.
Good job!
Pedro