11

Yes, it is possible. And there's an easy guide here. Below is a working code you can add to the theme's main functions.php file: // Adds a custom rule type. add_filter( 'acf/location/rule_types', function( $choices ){ $choices[ __("Other",'acf') ]['wc_prod_attr'] = 'WC Product Attribute'; return $choices; } ); // Adds custom rule values. ...


5

TGM-Plugin-Activation library is the best choice for installing required plugin.


4

Polylang seems to be a direct alternative to WPML. From the plugin description: Polylang allows you to create a bilingual or multilingual WordPress site. You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation of a post, whether it is in the default language or not, is ...


3

If you look through the definition of wp_insert_post(), you'll see do_action( 'wp_insert_post', $post_ID, $post, $update ); at the end of it. So you can hook into this and perform whatever task you want to after creating a post. Something like this in your theme's functions.php or in your plugin file: do_action( 'wp_insert_post', 'send_notification'); ...


3

Why would anybody create such a tool? Creating a plugin is really easy: At its simplest, a WordPress plugin is a PHP file with a WordPress plugin header comment. Here is the plugin header: <?php /* Plugin Name: YOUR PLUGIN NAME */ Just save the above text to a new PHP file, upload it to the plugins folder in WP and you're done. Of course, you ...


3

Below code will work with WordPress default login/register screens: add_action( 'wp', 'member_only_site' ); function member_only_site( ) { if ( ! is_user_logged_in( ) ) { auth_redirect(); } }


3

Post authors are notified of new comments by default; there are several plugins that modify this behavior. See wp_notify_postauthor. You can hook into comment_notification_recipients and add an aribtrary list of recipients as described here. Then you could create a metabox or dashboard widget to manage the recipient list. Keep in mind that this ...


2

If it's purely for setting the style of the text you may want to use JavaScript/jQuery instead. Here's a quick sample that would replace all instances of "ipsum" with <span class="red">ipsum</span> And the full code: // Find text in descendents of an element, in reverse document order // pattern must be a regexp with global flag // function ...


2

Yes, you can do this with the plugin you linked, Private Messages for WordPress. Firstly, download version 2.1.09 - version 2.1.10 introduced mostly bugs, one of which excludes admins from the senders list. Open the file pm4wp.php and edit line 450 to: if ( current_user_can( 'administrator' ) ) { $users = $wpdb->get_results( "SELECT display_name ...


2

Go to Posts and Filter by month and use the bulk edit feature. Check all posts for the month and change the status to Draft. You can use the Screen Options to display any number of posts per page on the Posts screen. More http://codex.wordpress.org/Posts_Screen


2

How to make Time.ly all-in-one event calendar mobile friendly Anyway, now down to the actual "mobile" part of things. After creating a wonderfully responsive website for Tahlequah Public Schools and installing this awesome calendar plugin, I found I had an issue with the site being mobile-friendly still... My calendar looked awful on mobile: it displayed ...


2

As lot of themes use the_content() to display the post content. you can use the_content filter hook to add the edit link before/after the content. Since you want this work outside themes, you have to put the following code in a file, and store it in your plugins folder then activate it as a plugin. <?php /** * Plugin Name: Add Edit Link in Frontend * ...


2

Place this in your theme functions: function mysite_clone_post($post_id, $post, $update) { if(!$update && in_category('home cat', $post)) { //not handled updates and will only run if in this category $post_fields = array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', '...


2

Yes, Symfony components are licensed under MIT these days. They are compatible with GPL, which is a requirement of the official WP repository. Do note that as number of plugins using common PHP components is increasing, so does possibility of version and other conflicts between them. Since WP lacks dependency management, at some point you might have to ...


1

What will happen if a website is hacked ? If anyone can create file it will be a very high security hole. Some Host simple disabled theme and plugin editor for various reason but the first is security. As Mihai said, it is very simple to create a plugin file and you can find a lot of plugin to inject PHP code related to theme.


1

There are many plugins that display the history of changes made by site's users. Personally, I have used Simple History plugin. It is easy to use, have a clear interface and useful log searching capabilities. For the list of similar plugins, you can read this recently updated article on wplift.


1

I'm putting this in as an "answer" just to give you pointers on where to start. Once you have specific questions concerning code you'll probably want to ask new questions. First, I'd create a child theme. (Look on Google, there are tons of examples/tutorials on how to do that.) In your child theme, create template files for the relevant custom post type. (...


1

You can bundle the files into a plugin. For the Christmas page, you could use the page_template filter - This question gives you an example on how to use it - Create custom page templates with plugins? For the CSS/JS file, you can add them using the wp_enqueue_scripts action, as you would normally use in a theme. The only difference is that you'll need to ...


1

Why do people use CMS? they use it to avoid having to handle HTML structure, JS and CSS on a page by page base and focus on the content. But if you do want to handle them that way because it save you time, then maybe wordpress is not the best solution for you. Wordpress has to know what is the content of the pages to be able to function properly and image ...


1

Why do you need a plugin for that? Set image quality to 100% in WordPress with following code. function my_new_image_quality( $quality ) { return 100; } add_filter( 'jpeg_quality', 'my_new_image_quality' ); add_filter( 'wp_editor_set_quality', 'my_new_image_quality' ); Now when you upload a image, WordPress always crop your image for different ...


1

Please see: http://codecanyon.net/item/hide-my-wp-no-one-can-know-you-use-wordpress/4177158 Sold 2300 copies ;)


1

I am sure that you could do this with WordPress, but this is far from what WordPress was built to do. Your description makes it sound like you would not be using most of WordPress. I don't see any mention of posts, or any mention of public content at all actually. You wouldn't need posts, pages, feeds, taxonomies, most everything. I don't think that the ...


1

I've used Post Thumbnail Editor on many sites, its really very good. Just remember when it opens, that it opened in a new tab, once you're done cropping, close the tab to get back to where yo were http://wordpress.org/plugins/post-thumbnail-editor/


1

A hook can only be implemented via actual function call. It is not possible without adding that call to theme template directly or via other method (calling it inside another, already available, hook for example). There is Theme Hook Alliance initiative to promote more standardized hooks in themes and increase flexibility, but adoption have been low so far ...


1

There are two sidebars Main and Showcase in the theme. To make it showing on a page, go to this page and select appropriate page template in the page attributes meta box. Then sidebars will appear on your page.


1

Pitta Migration Description Migrates the database wp_options to match WP_HOME and WP_SITEURL Type Plug & Play, no config needed beyond setting the WP_HOME and WP_SITEURL constants Download Link https://wordpress.org/plugins/pitta-migration/ Related Question How to: Easily Move a WordPress Install from Development to Production?


1

As mentioned in a comment above the cookie solution will not totally do the trick. If it's ok that they can revisited the welcome page from a different browser or if they delete cookies. This is fine. If not I would use the database. I think easiest would be to regard the time the user was registered. Like if the user registered within the last 60 minutes ...


1

I would go the route of an existing plugin if you're not wanting to do all of the development yourself and wanting to integrate Q&A into an existing site. There are several WordPress plugins that will give you functionality like Quora, StackExchange, etc. - without the need for a completely new or independent theme: 10+ Question & Answer WordPress ...


1

Feedburner is the best because you also gets analytics. Connects to any gmail account via feedburner.google.com. On the Subscribe tab you can get the code for Email subscriptions. Just stick that into a Text widget.


1

I use WordPress IP Blocker Pro which accomplishes all my worries. It has features like Auto-IP Blocking and Country Blocking as well.


Only top voted, non community-wiki answers of a minimum length are eligible