How to use the @woocommerce/settings.getAdminLink function in @woocommerce/settings

To help you get started, we’ve selected a few @woocommerce/settings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github woocommerce / woocommerce-gutenberg-products-block / assets / js / blocks / reviews / edit-utils.js View on Github external
/>
			{ attributes.showReviewRating && ! REVIEW_RATINGS_ENABLED && (
				
					
						{ sprintf(
							escapeHTML(
								/* translators: A notice that links to WooCommerce settings. */
								__(
									'Product rating is disabled in your %sstore settings%s.',
									'woo-gutenberg-products-block'
								)
							),
							`<a href="${ getAdminLink(
								'admin.php?page=wc-settings&amp;tab=products'
							) }">`,
							'</a>'
						) }
					
				
			) }
			
					setAttributes( {
						showReviewerName: ! attributes.showReviewerName,
					} )
				}
			/&gt;
github php4dev / heroku-wordpress / wp-content / plugins / woo-gutenberg-products-block / assets / js / atomic / blocks / product-elements / image / edit.js View on Github external
) }
					Customizer.',
								'woo-gutenberg-products-block'
							),
							{
								a: (
									// eslint-disable-next-line jsx-a11y/anchor-has-content
									<a rel="noopener noreferrer" href="{">
								),
							}
						) }
						value={ imageSizing }
						options={ [
							{
								label: __(
									'Full Size',
									'woo-gutenberg-products-block'
								),
								value: 'full-size',</a>
github php4dev / heroku-wordpress / wp-content / plugins / woocommerce / packages / woocommerce-blocks / assets / js / blocks / reviews / edit-utils.js View on Github external
/&gt;
					{ attributes.imageType === 'reviewer' &amp;&amp; ! SHOW_AVATARS &amp;&amp; (
						
							{ __experimentalCreateInterpolateElement(
								__(
									'Reviewer photo is disabled in your <a>site settings</a>.',
									'woocommerce'
								),
								{
									a: (
										// eslint-disable-next-line jsx-a11y/anchor-has-content
										<a rel="noopener noreferrer" href="{">
									),
								}
							) }
						</a><a rel="noopener noreferrer" href="{">
					) }
				
			) }
		
	);
};
</a>
github php4dev / heroku-wordpress / wp-content / plugins / woo-gutenberg-products-block / assets / js / blocks / reviews / edit-utils.js View on Github external
/&gt;
					{ attributes.imageType === 'reviewer' &amp;&amp; ! SHOW_AVATARS &amp;&amp; (
						
							{ __experimentalCreateInterpolateElement(
								__(
									'Reviewer photo is disabled in your <a>site settings</a>.',
									'woo-gutenberg-products-block'
								),
								{
									a: (
										// eslint-disable-next-line jsx-a11y/anchor-has-content
										<a rel="noopener noreferrer" href="{">
									),
								}
							) }
						</a><a rel="noopener noreferrer" href="{">
					) }
				
			) }
		
	);
};
</a>
github php4dev / heroku-wordpress / wp-content / plugins / woocommerce / packages / woocommerce-blocks / assets / js / blocks / reviews / edit-utils.js View on Github external
/&gt;
			{ attributes.showReviewRating &amp;&amp; ! REVIEW_RATINGS_ENABLED &amp;&amp; (
				
					{ __experimentalCreateInterpolateElement(
						__(
							'Product rating is disabled in your <a>store settings</a>.',
							'woocommerce'
						),
						{
							a: (
								// eslint-disable-next-line jsx-a11y/anchor-has-content
								<a rel="noopener noreferrer" href="{">
							),
						}
					) }
				</a><a rel="noopener noreferrer" href="{">
			) }
			
					setAttributes( {
						showReviewerName: ! attributes.showReviewerName,</a>
github php4dev / heroku-wordpress / wp-content / plugins / woocommerce / packages / woocommerce-blocks / assets / js / blocks / attribute-filter / edit.js View on Github external
instructions={ __(
				'Display a list of filters based on a chosen attribute.',
				'woocommerce'
			) }
		&gt;
			<p>
				{ __(
					"Attributes are needed for filtering your products. You haven't created any attributes yet.",
					'woocommerce'
				) }
			</p>
			<button href="{">
				{ __( 'Add new attribute', 'woocommerce' ) +
					' ' }
				
			</button>
			<button href="https://docs.woocommerce.com/document/managing-product-taxonomies/">
				{ __( 'Learn more', 'woocommerce' ) }
			</button>
		
	);
github woocommerce / woocommerce-gutenberg-products-block / assets / js / blocks / attribute-filter / edit.js View on Github external
instructions={ __(
				'Display a list of filters based on a chosen attribute.',
				'woo-gutenberg-products-block'
			) }
		&gt;
			<p>
				{ __(
					"Attributes are needed for filtering your products. You haven't created any attributes yet.",
					'woo-gutenberg-products-block'
				) }
			</p>
			<button href="{">
				{ __( 'Add new attribute', 'woo-gutenberg-products-block' ) +
					' ' }
				
			</button>
			<button href="https://docs.woocommerce.com/document/managing-product-taxonomies/">
				{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
			</button>
		
	);
github php4dev / heroku-wordpress / wp-content / plugins / woo-gutenberg-products-block / assets / js / blocks / price-filter / edit.js View on Github external
instructions={ __(
				'Display a slider to filter products in your store by price.',
				'woo-gutenberg-products-block'
			) }
		&gt;
			<p>
				{ __(
					"Products with prices are needed for filtering by price. You haven't created any products yet.",
					'woo-gutenberg-products-block'
				) }
			</p>
			<button href="{">
				{ __( 'Add new product', 'woo-gutenberg-products-block' ) +
					' ' }
				
			</button>
			<button href="https://docs.woocommerce.com/document/managing-products/">
				{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
			</button>
		
	);
github woocommerce / woocommerce-gutenberg-products-block / assets / js / blocks / price-filter / edit.js View on Github external
instructions={ __(
				'Display a slider to filter products in your store by price.',
				'woo-gutenberg-products-block'
			) }
		&gt;
			<p>
				{ __(
					"Products with prices are needed for filtering by price. You haven't created any products yet.",
					'woo-gutenberg-products-block'
				) }
			</p>
			<button href="{">
				{ __( 'Add new product', 'woo-gutenberg-products-block' ) +
					' ' }
				
			</button>
			<button href="https://docs.woocommerce.com/document/managing-products/">
				{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
			</button>
		
	);
github php4dev / heroku-wordpress / wp-content / plugins / woocommerce / packages / woocommerce-blocks / assets / js / blocks / price-filter / edit.js View on Github external
instructions={ __(
				'Display a slider to filter products in your store by price.',
				'woocommerce'
			) }
		&gt;
			<p>
				{ __(
					"Products with prices are needed for filtering by price. You haven't created any products yet.",
					'woocommerce'
				) }
			</p>
			<button href="{">
				{ __( 'Add new product', 'woocommerce' ) +
					' ' }
				
			</button>
			<button href="https://docs.woocommerce.com/document/managing-products/">
				{ __( 'Learn more', 'woocommerce' ) }
			</button>
		
	);