403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/classes/WpCli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/classes/WpCli/Commands.php
<?php

namespace Themeco\Cornerstone\WpCli;

class Commands extends \WP_CLI_Command {
  public function clear_style_cache() {
    do_action( 'cs_purge_tmp' );
    \WP_CLI::success( "Style cache cleared" );
  }
}

// <?php

// class Cornerstone_CLI_Headers extends WP_CLI_Command {

//   public function create( $args, $assoc_args ) {

//     $fields = wp_parse_args( $assoc_args, array(
//       'title' => 'New Header'
//     ) );

//     $header = new Cornerstone_Header( array('title' => $fields['title'] ) );
//     $data = $header->save();
//     $id = $data['id'];

//     WP_CLI::success( "Header created! ID: $id" );
//   }

//   public function lookup( $args ) {
//     $header = new Cornerstone_Header( (int) $args[0] );
//     if ($args[1] ) {
//       $method = array( $header, $args[1] );
//       if ( is_callable( $method ) ) {
//         print_r( call_user_func_array( $method, array() ) );
//       } else {
//         WP_CLI::success( "Header does not have method: {$args[1]}" );
//       }
//     } else {
//       print_r( $header );
//     }

//   }

//   public function delete_all( $args, $assoc_args ) {

//     if ( ! isset($assoc_args['confirm']) || ! $assoc_args['confirm'] ) {
//       return WP_CLI::error( 'This will delete all headers. Add --confirm to continue');
//     }

//     $posts = get_posts( array(
//       'post_type' => 'cs_header',
//       'post_status' => 'any',
//       'orderby' => 'type',
//       'posts_per_page' => apply_filters( 'cs_query_limit', 2500 )
//     ) );

//     $progress = \WP_CLI\Utils\make_progress_bar( 'Deleting headers', count( $posts ) );

//     foreach ($posts as $post) {
//       $header = new Cornerstone_Header( $post->ID );
//       $header->delete();
//       $progress->tick();
//     }

//     $progress->finish();

//   }
// }

Youez - 2016 - github.com/yon3zu
LinuXploit