custom_css_restore_revision

The Jetpack by WordPress.com custom css restore revision function.

Description

custom_css_restore_revision( $_post_id, $_revision_id ); 

Parameters (2)

0. $post_id
The post id.
1. $revision_id
The revision id.

Usage

  1. if ( !function_exists( 'custom_css_restore_revision' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css.php'; 
  3.  
  4. // The post id. 
  5. $post_id = null; 
  6.  
  7. // The revision id. 
  8. $revision_id = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = custom_css_restore_revision($post_id, $revision_id); 
  12.  

Defined (1)

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

/modules/custom-css/custom-css.php  
  1. function custom_css_restore_revision( $_post_id, $_revision_id ) { 
  2. _deprecated_function( __FUNCTION__, '2.1', 'Jetpack_Custom_CSS::restore_revision()' ); 
  3.  
  4. return Jetpack_Custom_CSS::restore_revision( $_post_id, $_revision_id );