- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
| <?php | |
| add_filter( | |
| 'hivepress/v1/templates/vendor_view_page', | |
| function( $template ) { | |
| return hivepress()->helper->merge_trees( | |
| $template, | |
| [ | |
| 'blocks' => [ | |
| 'listings' => [ | |
| 'columns' => 3, |
| <?php | |
| add_filter( | |
| 'hivepress/v1/models/listing', | |
| function( $model ) { | |
| $model['fields']['title']['max_length'] = 123; | |
| $model['fields']['description']['max_length'] = 123; | |
| return $model; | |
| } | |
| ); |
| <?php | |
| add_filter( | |
| 'hivepress/v1/forms/listing_update', | |
| function( $form ) { | |
| unset( $form['fields']['description'] ); | |
| return $form; | |
| }, | |
| 1000 | |
| ); |
| .hp-template--listing-edit-page .hp-listing__action--delete, | |
| .hp-template--listings-edit-page .hp-listing__action--delete { | |
| display: none; | |
| } |
| <?php | |
| add_filter( | |
| 'hivepress/v1/menus/user_account', | |
| function( $menu ) { | |
| $menu['items']['custom_name_here'] = [ | |
| 'label' => 'custom label here', | |
| 'url' => 'custom url here', | |
| '_order' => 123, | |
| ]; |
| <?php | |
| add_filter( | |
| 'hivepress/v1/forms/user_register', | |
| function ( $form ) { | |
| $form['fields'] = array_merge( | |
| $form['fields'], | |
| [ | |
| 'first_name' => [ | |
| 'required' => true, | |
| '_order' => 1, |
| <?php | |
| add_filter( | |
| 'hivepress/v1/models/listing', | |
| function( $model ) { | |
| $model['fields']['description']['editor'] = true; | |
| return $model; | |
| }, | |
| 1000 | |
| ); |
| <?php | |
| add_filter( | |
| 'hivepress/v1/models/listing', | |
| function( $model ) { | |
| $model['fields']['images']['max_files'] = 123; | |
| return $model; | |
| }, | |
| 100 | |
| ); |
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
Turn off YouTube "keep hovering to play" popup.
PREF. Append &f7=1 to the cookie. So volume=100 will become volume=100&f7=1.