absint( mixed $maybeint ): int
- Since
- 2.5.0
- Source
wp-includes/load.php:1468
Converts a value to non-negative integer.
Parameters
$maybeintmixed- Data you wish to have converted to a non-negative integer.
Return
int- A non-negative integer.
Used by · 50
- Custom_Background::ajax_background_add()Handles Ajax request for adding custom background context to an attachment.
- Custom_Background::wp_set_background_image()
- Custom_Image_Header::ajax_header_add()Given an attachment ID for a header image, updates its "last used" timestamp to now.
- Custom_Image_Header::ajax_header_crop()Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details.
- Custom_Image_Header::ajax_header_remove()Given an attachment ID for a header image, unsets it as a user-uploaded header image for the active theme.
- Custom_Image_Header::get_header_dimensions()Calculates width and height based on what the currently selected theme supports.
- Custom_Image_Header::js_2()Displays JavaScript based on Step 2.
- Custom_Image_Header::step_2()Displays second step of custom header image page.
- Custom_Image_Header::step_3()Displays third step of custom header image page.
- Featured_Content::init()Conditionally hooks into WordPress.
- TwentyTwenty_Walker_Page::start_el()Outputs the beginning of the current element in the tree.
- Twenty_Eleven_Ephemera_Widget::form()Sets up the widget form.
Show all 50
- Twenty_Eleven_Ephemera_Widget::widget()Outputs the HTML for this widget.
- Twenty_Fourteen_Ephemera_Widget::form()Displays the form for this widget on the Widgets page of the Admin area.
- Twenty_Fourteen_Ephemera_Widget::update()Deals with the settings when they are saved by the admin.
- Twenty_Fourteen_Ephemera_Widget::widget()Outputs the HTML for this widget.
- WP_Comment_Query::get_comment_ids()Used internally to get a list of comment IDs matching the query vars.
- WP_Comments_List_Table::__construct()Constructor.
- WP_Comments_List_Table::get_views()
- WP_Community_Events::__construct()Constructor for WP_Community_Events.
- WP_Community_Events::cache_events()Caches an array of events data from the Events API.
- WP_Customize_Cropped_Image_Control::to_json()Refresh the parameters passed to the JavaScript via JSON.
- WP_Customize_Header_Image_Control::enqueue()
- WP_Customize_Header_Image_Control::render_content()
- WP_Customize_Manager::_validate_header_video()Callback for validating the header_video value.
- WP_Customize_Manager::handle_load_themes_request()Loads themes into the theme browsing/installation UI.
- WP_Customize_Manager::register_controls()Registers some default controls.
- WP_Customize_Nav_Menus::ajax_load_available_items()Ajax handler for loading available menu items.
- WP_Customize_Nav_Menus::ajax_search_available_items()Ajax handler for searching available menu items.
- WP_Customize_Nav_Menus::search_available_items_query()Performs post queries for available-item searching.
- WP_HTTP_Requests_Response::set_status()Sets the 3-digit HTTP status code.
- WP_HTTP_Response::set_status()Sets the 3-digit HTTP status code.
- WP_Links_List_Table::prepare_items()
- WP_List_Table::get_pagenum()Gets the current page number.
- WP_Network_Query::get_network_ids()Used internally to get a list of network IDs matching the query vars.
- WP_Privacy_Requests_Table::get_views()Gets an associative array ( id => link ) with the list of views available on this table.
- WP_Privacy_Requests_Table::prepare_items()Prepares items to output.
- WP_Query::get_posts()Retrieves an array of posts based on query variables.
- WP_Query::parse_query()Parses a query string and sets query type booleans.
- WP_Query::parse_tax_query()Parses various taxonomy related query vars.
- WP_REST_Comments_Controller::get_items()Retrieves a list of comment items.
- WP_REST_Menu_Items_Controller::prepare_item_for_database()Prepares a single nav menu item for create or update.
- WP_REST_Menu_Items_Controller::prepare_item_for_response()Prepares a single nav menu item output for response.
- WP_REST_Pattern_Directory_Controller::prepare_item_for_response()Prepare a raw block pattern before it gets output in a REST API response.
- WP_REST_Users_Controller::delete_item()Deletes a single user.
- WP_REST_Users_Controller::prepare_item_for_database()Prepares a single user for creation or update.
- WP_Roles::for_site()Sets the site to operate on. Defaults to the current site.
- WP_Site_Query::get_site_ids()Used internally to get a list of site IDs matching the query vars.
- WP_Sitemaps::render_sitemaps()Renders sitemap templates based on rewrite rules.
- WP_Term_Query::parse_query()Parse arguments passed to the term query with default query parameters.
Source
function absint( $maybeint ) { return abs( (int) $maybeint );}History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/load.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.