Documentation about ACTIVATIONS is poor (or nonexistent) + a question
-
Hi,
At first: congrats to the plugin, it’s generally an awesome product.
BUT – as the title suggests, I’m totally unstatisfied with the documentation. Currently you have 8 articles in the plugin knowledge base, and none of these articles include the following information:What does ACTIVATION mean at all? What is this feature, how does it work?
I would appreciate if you shared some relevant and detailed information.
And a question: I tried to implement a custom activation programmatically, because I had the idea that this ‘activation’ thingy might be related to the serial number status/availability.
I used these codes:
1. Updating availability:
$sn_id = 344; wc_serial_numbers_update_serial_number_status( $sn_id, 'available' );
?? This snippet works as expected.
2. Updating activation status
$sn_id = 344; $sn_Obj = wc_serial_numbers_get_serial_number( $sn_id ); wc_serial_numbers_insert_activation( array( 'serial_id' => $sn_id, 'active' => 1, 'instance' => $sn_Obj, ) );
?? This snippet doesn’t work. At least not as expected. It created activation entries all right, but all activation column data is missing – and this data should be there, based on what I see in the related functions file on Github.
Thanks in advance for your information, and ideally with your help regarding what am I doing wrong with the second snippet.
- The topic ‘Documentation about ACTIVATIONS is poor (or nonexistent) + a question’ is closed to new replies.