Add this text to a plugin file or your theme’s functions file and then change the ’18’ to the id of the category of products you want to apply the filter to.

ID;
$my_product_array = array( 799,796,792 );//add in product IDs
if ( in_array( $product_id, $my_product_array )) {
$textafter = ‘( Upfront Paid in Full Price )’; //add your text
return $price . ‘
‘ . $textafter . ‘‘;
}

else {
return $price;
}
}
add_filter( ‘woocommerce_get_price_html’, ‘themeprefix_custom_price_message’ );

Add this text to a plugin file or your theme’s functions file and then change the ’18’ to the id of the category of products you want to apply the filter to.

/**
* Filter woocommerce product titles.
*
* @package Fix
*//**
* Filter the product title by category
*
* @param string $title The title.
* @param integer $id The id.
*
* @return string Filtered title.
*/
function woocommerce_category_title_filter( $title, $id ) {$post_type = get_post_type();if ( ‘product’ !== $post_type ) {return $title;}$categories = wp_get_post_terms( $id, ‘product_cat’ );if ( empty( $categories ) ) {return $title;}

$cat_ids = wp_list_pluck( $categories, ‘term_id’ );

if ( ! in_array( 18, $cat_ids, true ) ) { // 18 is the product category id being filtered

return $title;

}

return ‘Per Day ‘ . $title;

}
add_filter( ‘the_title’, ‘woocommerce_category_title_filter’, 10, 2 );

Wordcamp Baltimore 2017

I went to Wordcamp Baltimore before and it was one of my favorite Wordcamps and it still was!  These Wordcamps are fun because the talks are more development-based which I find interesting and the city is nice.  The bottom line is that I like the Baltimore Wordcamps and I know from experience.

Millenium Technology

This is a website that I designed and developed in WordPress using photoshop and Illustrator to create the mockups and then PHP to create the interface.  This was an especially fun project because it required me to make a custom plugin in order for me to create that easy update interface that is the trademark of all my sites.

I strive to make all of my sites easy-to-update for all of my clients using plugins, custom post types, custom fields and shortcodes.

WC Boston 2017

I just got back from WordCamp Boston 2017 which was a lot of fun.  My aunt and uncle lived near the venue, so in addition to traveling and attending an interesting conference, I got to visit and stay with family.

I saw many talks at the conference, but I saw a particularly good talk about WP-CLI by Ryan Kanner called, “Take back the day with WP-CLI“.  The talk detailed several common scenarios where clients or bosses asked him to perform the same simple task on 100 websites and how WP-CLI can and did help him do that in a matter of seconds rather than a few hours.

This was an especially fun Wordcamp for me for two reasons:
1) My family lives near Boston, so I was able to visit and stay with them while on this trip and since I do not see them very often it was great to see everyone. They had a barbecue while I was there and the steaks were very good.
2) I went to BU for a year, so it was fun to be back in the same building I was in so many times back then.

The conference itself was interesting.  There were a few interesting talks on the REST API and when to use it.  I am interested by that topic, and always find it fun and feel very accomplished when I use the REST API and AJAX in my code.

new Website for Neurologist

This is a website that I designed and developed in WordPress using photoshop and Illustrator to create the mockups and then PHP to create the interface.  This was an especially fun project because it required me to make a custom plugin in order for me to create that easy update interface that is the trademark of all my sites.

I strive to make all of my sites easy-to-update for all of my clients using plugins, custom post types, custom fields and shortcodes.

Why Use SSL?

This is important because the information you send on the Internet is passed from computer to computer to get to the destination server. Any computer in between you and the server can see your credit card numbers, usernames and passwords, and other sensitive information if it is not encrypted with an SSL certificate.  Using an SSL certificate to encrypt traffic from your site means that your customers or users’s information will be safe from prying eyes.

Development Tools

The work of any developer is going to be improved or hurt by the tools they are using.  As my grandfather used to say, “you need the right tool for the job” and I think that simple but wise statement applies to development tools as well as construction equipment.  I will take you through explain which tools I use and get good performance from, and hopefully this list will help you pick the right tools as well.

 

Code Editor: Atom 

I installed it expecting a code-highlighting text editor, but it has turned out to be so much more than that. Atom does highlight code well, but the Atom application allows extensions to be installed that allow Atom to open project folders, access FTP servers and use very descriptive and easily-distinguishable icons in the file tree it creates of the open folder. Atom also has a Terminal extension that can be opened right inside the application. In addition to executing any Terminal command, the Terminal in Atom makes GitHub projects much more manageable.

Extensions I’ve Added are Remote-FTP for FTP server access, file-icons for improved visuals, linter and linter-phpcs for code linting, minimap to show a preview of my document on the right hand side of the screen, pigments to display colors in project files and platformio-ide-terminal for quick Terminal access from Atom.

 

Test Server: MariaDB & Valet   

Using the Brew Package Manager, installing MariaDB server and Valet to serve up your websites is a cinch. Enter a few Terminal commands to Brew and you are done. All you have to do is run ‘valet park’ in a directory and then any folder in there ‘.dev’ will be a live site that you can visit and share.

SQL Database Manager/Editor: Sequel Pro 

MariaDB and Valet are so minimal that I wanted to have a GUI to use with them to manage my databases. All Sequel Pro does is show an intuitive interface for managing SQL databases, but that was all I needed it to do because the whole website testing process is so easy with Valet.

FTP Client: Atom 

Originally I thought I would need an FTP client, but the atom package for FTP access makes FTP so easy that I did not need another application for that.

Fake SMTP Server: Mailhog 

Sometimes you need your website to send email when a new order is placed, a new blog post is written or a login is attempted. Unfortunately many local servers are not configured to be able to send email out to other servers. Mailhog can be run from the terminal, and why runningcreates a fake SMTP server at ‘localhost:8025/’ that traps all email sent on the server, and allows you to view that email for testing purposes. The configuration will be different for different frameworks, but for WordPress sites running on the Valet server, just turn on WP_DEUB in you ‘wp-config’ file and create a new MU-plugin with the following code:

$phpmailer->Host = ‘localhost’;

// Use SMTP authentication (true|false)
$phpmailer->SMTPAuth = false;

// SMTP port number
// Mailhog normally run on port 1025
$phpmailer->Port = WP_DEBUG ? ‘1025’ : ’25’;

// Username to use for SMTP authentication
// $phpmailer->Username = ‘yourusername’;

// Password to use for SMTP authentication
// $phpmailer->Password = ‘yourpassword’;

// The encryption system to use – ssl (deprecated) or tls
// $phpmailer->SMTPSecure = ‘tls’;

$phpmailer->From = ‘admin@wp.dev’;
$phpmailer->FromName = ‘WP DEV’;
}, 10, 1 );

Browser: Google Chrome /w Extensions 

Last but not least is the browser that any good Front-End Developer needs to use to test sites. The first consideration that one needs to take into account when choosing a browser for testing is the modernity of the rendering engine. Google Chrome is safe bet, because it handles creates visuals for HTML without the need for hacks or alternate browser-specific code. A great feature of Chrome that does not seem to get enough fame is the Developer Tools that come built into Chrome. Not only can the Developer Tools inspect the code and elements of a page, but it allows the user to make changes to that code that are only reflected in the local browser window. Chrome Developer Tools also has the console, which is good for inputting javascript to run, viewing output from a page and seeing errors that the code on a page ran into.

Running on my browser, I have ‘Colorzilla’ to pick colors out of webpages, ‘Resize Window’ to test responsive page changes and see what the page looks like in smaller windows, ‘Wappalyzer’ to see what technolgies were used to create the cirrent webpage, ‘WordPress Theme and Plugin Detector’ to see what Theme and Plugins were used on the current page if it is a WordPress, ‘WhatFont’ to see what font/size/letterspacing was used in a certain place on the current page and ‘Nimbus Screenshot & Screen Video Recorder’ to quickly take pictures of webpagesand mark them up quickly to send someone else proposed fixes and changes.

 

That was the list of 5 dev tools I use with extensions.  You may use some or all of them, the choice is yours, haha.  I hope this list of tools has been helpful for you in picking which development tools to use or changing some of your existing ones.

*This List Will Be Updated If I Change Tools*

WordPress 4.7


Version 4.7 of WordPress, named “Vaughan” in honor of legendary jazz vocalist Sarah “Sassy” Vaughan, was released a few hours ago for download or update in your WordPress dashboard. New features in 4.7 help you get your site set up the way you want it.  The latest version was released today along with the twentyseventeen theme and is available from the dashboard or for manual installation from www.wordpress.org.

 

New Features:

  • Edit Shortcuts (makes it easier to edit the site with the customizer)
  • Video Headers (Spot built-in to the top of pages for a video)
  • Smoother Menu Building (Ability to create new pages and add them to menus all in the customizer)
  • Custom CSS (A sitewide stylesheet is now available in the customizer)
  • PDF Thumbnail Previews (See a thumbnail representation of any PDFs you have in your media library)
  • Dashboard In Your Language (set a language for your dashboard that is not the same as the rest of the site)
  • REST API Endpoints (Access certain information form your site via asynchronous calls to the rest API to cut down on page loads but still change the information displayed on the current page)