by WPFactory.
Awesome shortcodes.
Awesome Shortcodes is an awesome collection of shortcodes.
Currently included shortcode packs:
[copyright]
– Shortcode displays copyright symbol.[countdown]
– Creates a countdown timer. Updated every second.[dashicon]
– Shortcode displays WordPress dash icon.[date]
– Displays current date.[font_awesome]
– Shortcode displays Font Awesome icons.[google_map]
– Shortcode displays Google Map for selected coordinates.[hide]
– Hides content. Useful for commenting.[login_url]
– Shortcode displays your WordPress site login URL.[meter]
– Shortcode is used to measure data within a given range (a gauge). Uses HTML <meter>
tag.[number_counter]
– Creates an animated number counter.[option]
– Shortcode displays WordPress option value. Uses WordPress get_option()
function.[progress]
– Shortcode displays the progress of a task. Uses HTML <progress>
tag.[table]
– Displays HTML table.[timenow]
– Shows current time in HH:MM:SS
format. Updated every second.[total_categories]
– Shortcode displays total categories count on your site.[total_tags]
– Shortcode displays total tags count on your site.[total_taxonomy]
– Shortcode displays total taxonomy terms count on your site.
– Shortcode displays embedded YouTube video.[code]
– Wrap contents in <code>
tag. Useful for displaying a piece of computer code.[details]
– Creates an interactive widget that user can open and close. Uses HTML <details>
tag.[flash]
– Creates flashing text effect with CSS.[is_user_logged_in]
– Hides text from users who are not logged in.[is_user_role]
– Shows text by user role.[strikeout]
– Strikeouts content.[text3d]
– Creates 3D text with CSS.[post_id]
– Displays current post ID.[post_meta]
– Displays post meta field value.[posts]
– Displays posts. Check WP_Query page for more info on params.[total_posts]
– Displays total number of posts in your site.[total_users]
– Shortcode displays the count of users having each role, or the count of all users.[user_display_name]
– Displays current user display name. If user is not logged, nothing is displayed.[user_email]
– Displays current user email. If user is not logged, nothing is displayed.[user_first_name]
– Displays current user first name. If user is not logged, nothing is displayed.[user_id]
– Displays current user ID. If user is not logged, nothing is displayed.[user_ip]
– Displays current user IP.[user_last_name]
– Displays current user last name. If user is not logged, nothing is displayed.[user_location]
– Displays current user location (i.e. country).[user_login]
– Displays current user login (i.e. username). If user is not logged, nothing is displayed.[user_property]
– Displays current user selected property. If user is not logged, nothing is displayed.[wc_current_currency_code]
– Shortcode displays current WooCommerce currency code. Useful for multi-currency sites.[wc_current_currency_symbol]
– Shortcode displays current WooCommerce currency symbol. Useful for multi-currency sites.[wc_login_form]
– Displays WooCommerce login form for not logged in users. If user is already logged in, nothing is displayed.[wc_product_dimensions]
– Displays WooCommerce product dimensions.[wc_product_id]
– Shortcode displays current WooCommerce product ID.[wc_product_price_html]
– Shortcode displays WooCommerce product full price with currency symbol./wp-content/plugins/
directory.load_plugin_textdomain()
function moved to the init
action.plugins_loaded
action now.[is_user_role]
shortcode added.[is_user_logged_in]
shortcode added.[copyright]
shortcode added.[font_awesome]
shortcode added.[dashicon]
– Removed cutting dashicons-
in icon
attribute.Alg_Abstract_Awesome_Shortcodes_Pack
– PHP 7 compatibility – “Function name must be a string…” message fixed.[wc_current_currency_symbol]
shortcode added.[wc_current_currency_code]
shortcode added.count_terms()
– Checking for is_wp_error()
(returned for non existing taxonomies).on_zero
attribute added to [total_taxonomy]
, [total_tags]
and [total_categories]
examples.[login_url]
shortcode added.[total_taxonomy]
shortcode added.[total_tags]
shortcode added.[total_categories]
shortcode added.
shortcode added.before
and after
) added to examples.[google_map]
– Attributes was wrongly marked as required.[dashicon]
shortcode added.[google_map]
shortcode added.[meter]
shortcode added.[progress]
shortcode added.[wc_product_price_html]
shortcode added.[wc_product_id]
shortcode added.type
address argument replaced with pack
.[total_users]
shortcode added.[option]
shortcode added.strip_tags
common attribute added.Alg_Abstract_Awesome_Shortcodes_Pack
– func
rewritten, so now it’s possible to call global functions.[wc_product_dimensions]
shortcode added.[wc_login_form]
shortcode added.[user_location]
shortcode added.[user_ip]
shortcode added.[details]
shortcode added.[number_counter]
shortcode added.[post_meta]
– array_glue
attribute added.do_shortcode_atts
and do_shortcode_content
common attributes added.lang
and not_lang
common attributes added.awesome_shortcodes_packs
and awesome_shortcodes_pack_{$pack->id}
filters added.[post_id]
– Example fixed.[user_login]
shortcode added.[user_email]
shortcode added.[user_first_name]
shortcode added.[user_last_name]
shortcode added.[user_display_name]
shortcode added.[user_id]
shortcode added.[user_property]
shortcode added.[total_posts]
shortcode added.[posts]
– Example added.on_zero
common attribute added.[posts]
– sep
, max_posts
, output_format
, post_type
, post_status
, orderby
, order
attributes added.[post_id]
shortcode added.[post_meta]
shortcode added.[posts]
shortcode moved from “General” pack).