Front-end CSS Library for plugin [closed]

Achieving unaltered style via plugin for multiple themes is pretty difficult to achieve. How about this? Use any library among these e.g. Bootstrap in your plugin and then remove/comment the global properties from them. Since you will be author of the plugin, you can repeat the same thing in your plugin before releasing next update.

Correctly enqueue scripts of type=text/paperscript (PaperJs Library)

I’m not sure if this will solve your problem, but you can use the script_loader_tag filter to change the type text/javascript to text/paperscript add_filter( ‘script_loader_tag’, function( $tag, $handle, $src ) { if( ‘your-script-handle’ === $handle ) { $tag = str_replace( ‘text/javascript’, ‘text/paperscript ‘, $tag ); } return $tag; }, 10, 3 );

Plugin allowing users to add articles to a library

To keep track of each user’s favourite articles you could store the post IDs of the articles in the $wpdb->usermeta table with a simple plugin. Such a plugin would use the add_user_meta(), get_user_meta() and delete_user_meta() functions to store and retrieve the IDs to/from the database.

Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically

You can use sanitize_file_name hook for this. function my_sanitize_file_name( $filename ) { $chars_table = array( ‘ ‘ => ‘_’, ‘-‘ => ‘_’, ); $friendly_filename = preg_replace( array_keys( $chars_table ), array_values( $chars_table ), $filename ); return strtolower( $friendly_filename ); } add_filter( ‘sanitize_file_name’, ‘my_sanitize_file_name’, 10 ); It will also convert letters to lowercase to avoid conflicts on … Read more