Using absint() in WordPress

It convert a value to non-negative integer. Internally this function used abs( intval( $maybeint ) ). You can try below examples yourself. Examples Output var_dump absint( 0 ) 0 int(0) absint( ‘0’ ) 0 int(0) absint( 1 ) 1 int(1) absint( ‘8’ ) 8 int(8) absint( -27 ) 27 int(27) absint( ‘-8’ ) 8 int(8) absint(

Read More »
News
Mahesh Waghmare

Finally plugin Sample Data approved!

You can now download the Theme Unit Test for testing your theme or import the WooCommerce, bbPress plugin sample data with simple ONE click using WordPress plugin Sample Data. Note: Use Sample Data plugin on your testing/staging environment. Quick Start: #Quick Start: Follow below simple steps to import the dummy content: Install & Activate plugin. Click on Get Started » from plugin/theme. It

Read More »

Importing Theme Unit Test Data

Importing Theme Unit Test Data in WordPress with one click.

Read More »
Code Snippets
Mahesh Waghmare

Importing bbPress dummy data

Import the bbPress sample data with one click.

Read More »
Scroll to Top
%d bloggers like this: