Making Classes PHP 7 Compatible

If your host runs PHP 7 you might end up with one of these errors PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Here is the fix. Find

Posted in WordPress Tagged with:

[Solved] Fatal error: Call to undefined function boolval()

boolval() is a PHP function that was introduced in PHP 5.5. If you try to use it on a server that runs PHP 5.4 and lower, you will get an error like this: Fatal error: Call to undefined function boolval()

Posted in WordPress Tagged with: ,

Embed YouTube Videos On Bootstrap 4 Popup Modals With AutoPlay

Bootstrap 4 does not natively support embedding videos on its modal windows. Here is how to embed YouTube videos on modal popup windows.

Posted in WordPress Tagged with: , , ,

Escaping Text With Links In WordPress – The Right Way

Escaping a text with links can be replaced if escaped with __() during localization. This not ideal since the person writing the localizing file could replace links with their own. The proper way to do this is explained with an

Posted in WordPress Tagged with: , ,

Load CSS and JS the right way

/** * Load CSS and JS the right way * * @since  1.0 * @refer  https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-340 */ function firerooster_load_css_and_js() {   // Load Boostrap CSS   wp_enqueue_style( ‘bootstrap-css’, get_template_directory_uri() . ‘/includes/bootstrap4/css/bootstrap.min.css’ );      // Load style.css   wp_enqueue_style( ‘style’, get_stylesheet_uri() );      // Load Boostrap

Posted in WordPress Tagged with: