do_action_ref_array example



        $this->query_vars = wp_parse_args( $query$this->query_var_defaults );

        /** * Fires after the network query vars have been parsed. * * @since 4.6.0 * * @param WP_Network_Query $query The WP_Network_Query instance (passed by reference). */
        do_action_ref_array( 'parse_network_query', array( &$this ) );
    }

    /** * Sets up the WordPress query for retrieving networks. * * @since 4.6.0 * * @param string|array $query Array or URL query string of parameters. * @return array|int List of WP_Network objects, a list of network IDs when 'fields' is set to 'ids', * or the number of networks when 'count' is passed as a query var. */
    

        $this->query_vars = apply_filters( 'request', $this->query_vars );

        /** * Fires once all query variables for the current request have been parsed. * * @since 2.1.0 * * @param WP $wp Current WordPress environment instance (passed by reference). */
        do_action_ref_array( 'parse_request', array( &$this ) );

        return true;
    }

    /** * Sends additional HTTP headers for caching, content type, etc. * * Sets the Content-Type header. Sets the 'error' status (if passed) and optionally exits. * If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed. * * @since 2.0.0 * @since 4.4.0 `X-Pingback` header is added conditionally for single posts that allow pings. * @since 6.1.0 Runs after posts have been queried. * * @global WP_Query $wp_query WordPress Query object. */

            do_action_ref_array( 'in_widget_form', array( &$this, &$return$instance ) );
        }

        return $return;
    }

    /** * Registers an instance of the widget class. * * @since 2.8.0 * * @param int $number Optional. The unique order number of this widget instance * compared to other instances of the same class. Default -1. */

    do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );

    if ( '' === $secure_cookie ) {
        $secure_cookie = is_ssl();
    }

    /** * Filters whether to use a secure sign-on cookie. * * @since 3.1.0 * * @param bool $secure_cookie Whether to use a secure sign-on cookie. * @param array $credentials { * Array of entered sign-on data. * * @type string $user_login Username. * @type string $user_password Password entered. * @type bool $remember Whether to 'remember' the user. Increases the time * that the cookie will be kept. Default false. * } */
$post_links = array_unique( $post_links );

    /** * Fires just before pinging back links found in a post. * * @since 2.0.0 * * @param string[] $post_links Array of link URLs to be checked (passed by reference). * @param string[] $pung Array of link URLs already pinged (passed by reference). * @param int $post_id The post ID. */
    do_action_ref_array( 'pre_ping', array( &$post_links, &$pung$post->ID ) );

    foreach ( (array) $post_links as $pagelinkedto ) {
        $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );

        if ( $pingback_server_url ) {
            if ( function_exists( 'set_time_limit' ) ) {
                set_time_limit( 60 );
            }

            // Now, the RPC call.             $pagelinkedfrom = get_permalink( $post );

            

        do_action_ref_array( 'http_api_curl', array( &$handle$parsed_args$url ) );

        // We don't need to return the body, so don't. Just execute request and return.         if ( ! $parsed_args['blocking'] ) {
            curl_exec( $handle );

            $curl_error = curl_error( $handle );
            if ( $curl_error ) {
                curl_close( $handle );
                return new WP_Error( 'http_request_failed', $curl_error );
            }
            if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ), true ) ) {
                
// Set up meta_query so it's available to 'pre_get_terms'.         $this->meta_query = new WP_Meta_Query();
        $this->meta_query->parse_query_vars( $args );

        /** * Fires before terms are retrieved. * * @since 4.6.0 * * @param WP_Term_Query $query Current instance of WP_Term_Query (passed by reference). */
        do_action_ref_array( 'pre_get_terms', array( &$this ) );

        $taxonomies = (array) $args['taxonomy'];

        // Save queries by not crawling the tree in the case of multiple taxes or a flat tax.         $has_hierarchical_tax = false;
        if ( $taxonomies ) {
            foreach ( $taxonomies as $_tax ) {
                if ( is_taxonomy_hierarchical( $_tax ) ) {
                    $has_hierarchical_tax = true;
                }
            }
        }

function do_action_deprecated( $hook_name$args$version$replacement = '', $message = '' ) {
    if ( ! has_action( $hook_name ) ) {
        return;
    }

    _deprecated_hook( $hook_name$version$replacement$message );

    do_action_ref_array( $hook_name$args );
}

// // Functions for handling plugins. //
/** * Gets the basename of a plugin. * * This method extracts the name of a plugin from its filename. * * @since 1.5.0 * * @global array $wp_plugin_paths * * @param string $file The filename of plugin. * @return string The name of a plugin. */
$this->query_where = " WHERE 1=1 $search_sql";

        if ( $this->role ) {
            $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id";
            $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
        } elseif ( is_multisite() ) {
            $level_key = $wpdb->prefix . 'capabilities'; // WPMU site admins don't have user_levels.             $this->query_from .= ", $wpdb->usermeta";
            $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
        }

        do_action_ref_array( 'pre_user_search', array( &$this ) );
    }

    /** * Executes the user search query. * * @since 2.1.0 * @access public * * @global wpdb $wpdb WordPress database abstraction object. */
    public function query() {
        


            /** * Fires scheduled events. * * @ignore * @since 2.1.0 * * @param string $hook Name of the hook that was scheduled to be fired. * @param array $args The arguments to be passed to the hook. */
            do_action_ref_array( $hook$v['args'] );

            // If the hook ran too long and another cron process stole the lock, quit.             if ( _get_cron_lock() !== $doing_wp_cron ) {
                return;
            }
        }
    }
}

if ( _get_cron_lock() === $doing_wp_cron ) {
    delete_transient( 'doing_cron' );
}
/** * Fires before the WP_User_Query has been parsed. * * The passed WP_User_Query object contains the query variables, * not yet passed into SQL. * * @since 4.0.0 * * @param WP_User_Query $query Current instance of WP_User_Query (passed by reference). */
        do_action_ref_array( 'pre_get_users', array( &$this ) );

        // Ensure that query vars are filled after 'pre_get_users'.         $qv =& $this->query_vars;
        $qv = $this->fill_query_vars( $qv );

        $allowed_fields = array(
            'id',
            'user_login',
            'user_pass',
            'user_nicename',
            'user_email',
            
/** This filter is documented in wp-includes/class-wp-feed-cache-transient.php */
    $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );

    /** * Fires just before processing the SimplePie feed object. * * @since 3.0.0 * * @param SimplePie $feed SimplePie feed object (passed by reference). * @param string|string[] $url URL of feed or array of URLs of feeds to retrieve. */
    do_action_ref_array( 'wp_feed_options', array( &$feed$url ) );

    $feed->init();
    $feed->set_output_encoding( get_option( 'blog_charset' ) );

    if ( $feed->error() ) {
        return new WP_Error( 'simplepie-error', $feed->error() );
    }

    return $feed;
}


    /** * Loads all necessary admin bar items. * * This is the hook used to add, remove, or manipulate admin bar items. * * @since 3.1.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance, passed by reference. */
    do_action_ref_array( 'admin_bar_menu', array( &$wp_admin_bar ) );

    /** * Fires before the admin bar is rendered. * * @since 3.1.0 */
    do_action( 'wp_before_admin_bar_render' );

    $wp_admin_bar->render();

    /** * Fires after the admin bar is rendered. * * @since 3.1.0 */

    public function dispatch( $hook$parameters = array() ) {
        $result = parent::dispatch( $hook$parameters );

        // Handle back-compat actions.         switch ( $hook ) {
            case 'curl.before_send':
                /** This action is documented in wp-includes/class-wp-http-curl.php */
                do_action_ref_array( 'http_api_curl', array( &$parameters[0]$this->request, $this->url ) );
                break;
        }

        /** * Transforms a native Request hook to a WordPress action. * * This action maps Requests internal hook to a native WordPress action. * * @see https://github.com/WordPress/Requests/blob/master/docs/hooks.md * * @since 4.7.0 * * @param array $parameters Parameters from Requests internal hook. * @param array $request Request data in WP_Http format. * @param string $url URL to request. */


    /** * Fires before the password and confirm password fields are checked for congruity. * * @since 1.5.1 * * @param string $user_login The username. * @param string $pass1 The password (passed by reference). * @param string $pass2 The confirmed password (passed by reference). */
    do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );

    // Check for blank password when adding a user.     if ( ! $update && empty( $pass1 ) ) {
        $errors->add( 'pass', __( '<strong>Error:</strong> Please enter a password.' ), array( 'form-field' => 'pass1' ) );
    }

    // Check for "\" in password.     if ( str_contains( wp_unslash( $pass1 ), '\\' ) ) {
        $errors->add( 'pass', __( '<strong>Error:</strong> Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
    }

    
Home | Imprint | This part of the site doesn't use cookies.