WordPress 4.3 WP_Widget PHP Notice

WordPress 4.3 “Billie” was just released.

Some plugins that use WordPress widgets may try to access the WP_Widget class method directly in it’s own class method like this:

$this -> WP_Widget()

As a result, WordPress gives the following PHP notice:

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead

The solution is to change…

$this -> WP_Widget()



WordPress Hosting | Tribulant Software Blog

WordPress Hosting

WordPress optimized hosting!

It is important to have fast, secure and easy hosting for your websites. At Tribulant Software, we provide you with the best quality shared hosting available.

The hosting is WordPress optimized but not restricted to WordPress. Free WordPress installation is included with all packages or you can use the automatic WordPress installer to do it yourself if you prefer, it is included in your hosting control panel.

Host your websites now

Source: WordPress Hosting | Tribulant Software Blog

WordPress Check If Is Dashboard

There is no specific function in WordPress to check if the current screen is the Dashboard screen. So best is to use

To check if it is currently the admin panel, the Dashboard as a whole, you can use the is_admin() function which returns a boolean true | false. Please note that wp_ajax_ requests will also return true on is_admin() though.

Source: Function Reference/get current screen « WordPress Codex

WordPress: Dashboard Columns Option

WordPress used to have a “Number of Columns” setting on the dashboard under “Screen Layout” which I believe was removed in WordPress 3.8.

I’m not exactly sure why but I assume it is for WordPress to rather control and ensure the correct layout for you based on your screen resolution/browser size. Test it out: If you have a small screen like a tablet, you have one column and if you have a larger screen like a laptop, you will see two columns but on a much larger screen you would automatically see three columns.

Continue reading

© 2021 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest