Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: dbdelta_insert_queries

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2764      /**
2765       * Filters the dbDelta SQL queries for inserting or updating.
2766       *
2767       * Queries filterable via this hook contain "INSERT INTO" or "UPDATE".
2768       *
2769       * @since 3.3.0
2770       *
2771       * @param string[] $iqueries An array of dbDelta insert or update SQL queries.
2772       */
2773      $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );
2774
2775      $text_fields = array( 'tinytext', 'text', 'mediumtext', 'longtext' );
2776      $blob_fields = array( 'tinyblob', 'blob', 'mediumblob', 'longblob' );
2777      $int_fields  = array( 'tinyint', 'smallint', 'mediumint', 'int', 'integer', 'bigint' );
2778
2779      $global_tables  = $wpdb->tables( 'global' );
2780      $db_version     = $wpdb->db_version();
2781      $db_server_info = $wpdb->db_server_info();
2782