I hereby claim:
- I am rfmeier on github.
- I am rfmeier_wpe (https://keybase.io/rfmeier_wpe) on keybase.
- I have a public key ASCjN3SgSBVet3Pu16VseFbv2e8-rjZDA4NR-T-eG9iQvAo
To claim this, I am signing this object:
<?php | |
//* Do NOT include the opening php tag | |
add_filter( 'prepend_attachment', 'custom_prepend_attachment' ); | |
/** | |
* Callback for WordPress 'prepend_attachment' filter. | |
* | |
* Change the attachment page image size to 'large' | |
* | |
* @package WordPress |
[opcache] | |
; the path to the .so file | |
zend_extension=opcache.so | |
; Enabled. Set to 0 to disable | |
opcache.enable=1 | |
; Max memory consumption. Default 32 megs | |
opcache.memory_consumption=32 |
<?php | |
//* do no include php tags | |
add_filter( 'wp_nav_menu_items', 'custom_nav_item', 10, 2 ); | |
/** | |
* Callback for Genesis 'wp_nav_menu_items' filter. | |
* | |
* Add custom right nav item to Genesis primary menu. | |
* | |
* @package Genesis |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Throw a ValidationException from within a Controller. | |
*/ | |
use Illuminate\Validation\ValidationException; | |
throw ValidationException::withMessages([ | |
'form_item_name' => ['Form item error message.'], | |
]); |
<?php | |
$is_authenticated = Auth::check(); | |
$is_guest = Auth::guest(); | |
// Using Auth facade | |
$user = Auth::user(); | |
// Using auth() helper | |
$user = auth()->user(); |
$ php artisan make:request ProductUpdateRequest |
<?php | |
/** | |
* Update the specified resource in storage. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \App\Product $product | |
* | |
* @return \Illuminate\Http\Response | |
*/ | |
public function update(Request $request, Product $product) |
<?php | |
/** | |
* Get all orders given a product. | |
* | |
* @param integer $product_id The product ID. | |
* | |
* @return array An array of WC_Order objects. | |
*/ | |
function rfm_get_orders_by_product( $product_id ) { |
<?php | |
add_filter( 'genesis_site_layout', 'sample_genesis_site_layout' ); | |
/** | |
* Callback for 'genesis_site_layout' filter. | |
* | |
* Force full width content on the single product page. | |
* | |
* @param $layout The layout slug. | |
* @return string The layout slug. |