jetpack_do_after_markdown_activation

Actions performed only when Markdown is activated through the endpoint call.

Description

jetpack_do_after_markdown_activation(); 

Usage

  1. if ( !function_exists( 'jetpack_do_after_markdown_activation' ) ) { 
  2. require_once '/_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_do_after_markdown_activation(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php  
  1. function jetpack_do_after_markdown_activation() { 
  2.  
  3. // When Markdown is activated, enable support for post editing automatically. 
  4. update_option( 'wpcom_publish_posts_with_markdown', true );